Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Something like Tomcat for Perl

by The Mad Hatter (Priest)
on May 18, 2003 at 03:18 UTC ( #258946=note: print w/ replies, xml ) Need Help??


in reply to Something like Tomcat for Perl

If I understand correctly, you can definately do the first one using CGI::Session. I think you can do the second if you use Apache (and possibly IIS).

If you call the CGI script Resources.cgi, you should be able to configure Apache (it may be enabled by default even) to execute it when called as "Resources/stuff/goes/here". Once that is working, check out the path_info method of CGI; it should let you fetch the last bit of the URL the script was called with (ex/ "stuff/goes/here").

I know both of these work, as I use them myself.

Update You might also be interested in the Jellybean Object Web Server. I don't personally use it, but it is written by our very own chromatic.

NB I know that I responded to this and then front-paged it, but I think it is a good question. I'm honestly not trying to gain XP, and you can feel free to downvote this if you really think it was in bad form to front-page and reply.


Comment on Re: Something like Tomcat for Perl
Download Code
Re: Re: Something like Tomcat for Perl
by diotalevi (Canon) on May 18, 2003 at 15:07 UTC

    mod_perl handlers allow you associate arbitrary locations with your code. Consider this snippet. It uses a redirect so requests for the root go to the script's URL and from there I've associated /opencivics with the OpenCivics::WebApp::handler() method.

    Redirect /index.html http://www.somewhere.org/opencivics <Location /opencivics> PerlSetEnv ALZABO_DEBUG ALL SetHandler perl-script PerlModule Apache::Request PerlModule OpenCivics PerlHandler OpenCivics::WebApp </Location>
Re: Re: Something like Tomcat for Perl
by Biker (Priest) on May 19, 2003 at 07:09 UTC

    According to their web site, the last version of the Jellybean Object Web server (0.13) was released on 26 June 2001.

    Would you know if this software is maintained or abandoned?


    Everything went worng, just as foreseen.

      Hmmm, good question. :-) I guess I missed that. You could probably find out by /msg-ing chromatic...

      I got distracted writing one book and then another. I have code in evserver that needs to be merged and plan to do that in the near future.

      "Near", of course, is open to interpretation, users, and patches.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://258946]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-07-25 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls