Thanks Tim.
For anyone else searching the mailing list, check out:
http://java.sun.com/products/servlet/Filters.html
I was already using a filter to implement Hibernate "Open Session In
View" pattern, so Duh! to me. The servlet url pattern matching is
rather simplistic, so I've implemented a hard coded exclusion list in
the filter.
<filter-mapping>
<filter-name>SecurityContextFilter</filter-name>
<url-pattern>/subdir/*</url-pattern>
</filter-mapping>
Tim Funk wrote:
There called ServletFilters.
-Tim
Darryl L. Miles wrote:
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?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
--
Darryl L. Miles
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]