I've recently been using tomcat4, learning Java, and using it for Servlets and JSPs. Although I've written several CGIs in Perl, it seems to me that tomcat offers some stuff that's hard to do via CGI. The two that I'm most interested in are session objects and directory mapping -- the first allows for objects on the server to easily be stored and modified, with an association with an existing session without the user seeing or being able to mess with any of that stuff. The second allows a servlet, say ResourceManager.class, to be bound to all requests starting with the path "Resources/", and the servlet can use HttpServletRequest::getPathInfo() to get the path it was passed and respond accordingly. I would like to do the second without a redirect or any other such ugliness.

So, in sum, is there a way to do this kind of thing with Tomcat, or is there something similar to Tomcat that does for Perl what it does for Java?

In reply to Something like Tomcat for Perl by Improv

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.