You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by mperreno <mp...@iismail.unil.ch> on 2001/10/25 10:42:06 UTC

important: help needed with servlets path

(apache 1.3.12 tomcat 3.3)

As seen in the doc, an url path can be sliced in

context path + servlet path + path info

what's not said is that once the context path is matched, the servlet path 
must contain "/servlet/" for the servlet path to be interpreted as a servlet!

Actually I use jserv and I have the following directive

ApJServMount /script /java

and any url matching http://host/script/* is a servlet
I *have to* do the same thing with mod_jk

I have ~160 virtual hosts and 6500 servlets, so I can't name them all in a 
web.xml file

This could be done with Tomcat3.2 in which one could change the /servlet/ 
prefix with anything (prefix="/" for me) in the <RequestInterceptor>

help 

-- 
mathieu perrenoud [iis]