Improv has asked for the wisdom of the Perl Monks concerning the following question:
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?