tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brantley Hobbs" <bho...@itos.uga.edu>
Subject RE: Can you intercept the default Servlet ? stack servlets ? forward to specific class ?
Date Thu, 20 Oct 2005 14:53:55 GMT
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:darryl@netbauds.net]
> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message