yeah write a servlet and load it at startup as the first servlet to be
loaded.(for doing thing you need to add an entry in the web.xml). So if the
request is passed to tomcat from apache, it will be handled by your default
servlet.

I do not know if you can invoke a servlet for ONLY 1 URI not for other
requests which r coming to tomcat.

hth,
Shuklix


-----Original Message-----
From: Andy Nuss [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 5:37 AM
To: '[EMAIL PROTECTED]'
Subject: default servlet question


Hi,

Is it easy with Tomcat to specify that I want a single servlet to serve
EVERY request for a URI?

I.e.  what happens if I have a DefaultServlet which acts as a router for
requests, and I have a few other servlets which serve their own requests,
can I ensure that all requests not meant for any servlet get routed first
to the DefaultServlet?

Does this work for *.jsp as well as *.html as well as *.pdf?

Thanks,
Andy

Reply via email to