It sounds like a filter might be what you're looking for.

http://java.sun.com/products/servlet/Filters.html

B.

> -----Original Message-----
> From: Darryl L. Miles [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 20, 2005 10:51 AM
> To: Tomcat Users List
> Subject: Can you intercept the default Servlet ? stack servlets ?
forward
> to specific class ?
> 
> 
> I would like to change a sub-tree (/subdir) of my web-app so that I
run
> every request runs through my own default servlet (for a security
check)
> then if it drops out of the bottom I wish to forward to tomcat's
default
> servlet.
> 
> 
> Does Servlet technology allow the stacking of servlets, so mine can be
> innermost and get first choice on creating a response or doing nothing
> and letting the next outermost servlet have a go with the request ?
> 
> Can I forward the request I'm holding to a specific servlet class ?
> 
> What config changed to I need to make to web.xml ?  I'm thinking i
just
> create my new servlet and declare a servlet mapping of the containing
> directory tree "/subdir/".
> 
> Do you have any advise about the situation that I might find useful?
> 
> 
> Many Thanks
> 
> Darryl
> 
> --
> Darryl L. Miles
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to