You can use a Valve.
Or you can use a Filter configured in $CATALINA_HOME/conf/server.xml and the
class would live in the common/ classloader
-Tim
Chippada, Sreeni wrote:
Hi,
I am using Tomcat 5. I need all the requests be serviced by a
particular servlet irrespective of the web apps
Hi Tim,
Thanks for your reply.
I know how to create a valve. But I do not know how to execute a
servlet from a valve. I will be glad if you can you can tell me how to ro
point me to appropriate resources.
Also, I do not know how to configure the filters in the server.xml.
It sounds like using a Filter would be easier. With a filter - you can use
the Servlet API to get a Dispatcher for the servlet you wish to call. For
example, this filter reroute all requests to FooServlet:
package more.cowbell;
import javax.servlet.Filter;
import javax.servlet.FilterConfig;
That will solve my issue.
Thank you very much,
Sreeni
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 10:18 AM
To: Tomcat Users List
Subject: Re: Is it possible to intercept all requests and be serviced by a
ser vlet?
It sounds like using a
Hi,
I am using Tomcat 5. I need all the requests be serviced by a
particular servlet irrespective of the web apps deployed. Is there a way to
do it?
Thanks,
Sreeni
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
On Mon, May 17, 2004 at 10:19:29PM -0400, Chippada, Sreeni wrote:
: I am using Tomcat 5. I need all the requests be serviced by a
: particular servlet irrespective of the web apps deployed. Is there a way to
: do it?
Have you tried putting it in the global web.xml? Not