I'm working on finishing up a caching filter, but this puts a kink in
things slightly.  I will just have to manually call the cache manager in
the servlets to handle includes.

| -----Original Message-----
| From: AAron nAAs [mailto:[EMAIL PROTECTED]]
| Sent: Friday, January 10, 2003 9:03 AM
| To: [EMAIL PROTECTED]
| Subject: Re: Authentication and Filters
| 
| In the meantime, you can intercept includes by writing your own taglib
tag
| to do the include. With your code behind the include, you can do what
you
| wanted to do in the filter chain.
| 
| Example use of a custom include:
| 
| <%@page contentType="text/html"%>
| <%@ taglib uri="/mylib" prefix="my" %>
| <html>
| <head><title>Index</title></head>
| <body>
| This is the index page.
| The my:include tag filters and outputs the included file in any
fashion
| desireable. Just replace normal includes with this my:include tag. For
| instance, it could replace all less thans with ampersand-lt-semicolon
| strings.
| Included file begins here
| <my:include page="/code.html"/>
| Included file ends here
| </body>
| </html>
| 
| -AAron
| 
| >From: Tim Funk <[EMAIL PROTECTED]>
| >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
| >To: Tomcat Users List <[EMAIL PROTECTED]>
| >Subject: Re: Authentication and Filters
| >Date: Fri, 10 Jan 2003 09:52:29 -0500
| >
| >Filters are only performed on the incoming request. So the filter
chain
| is
| >executed once and only once per request.
| >
| >There is an option in the 2.4 Servlet API to allow filter chains to
be
| >invoked on .includes() and .forwards().
| >
| >See section 6.2.5 of the Servlet 2.4 Spec for more details.
| >
| >Tomcat 5 will support the Servlet 2.4 Spec. Tomcat 5 is not released
yet
| >and there is no known timetable as to when it will be released.
| >
| >-Tim
| >
| >Jacob Hookom wrote:
| >>Authentication aside, does the servlet container work such that an
| >>include or RD operation has the option of passing through the
filter?
| >>If so, as of which release?
| >>
| >>Best Regards,
| >>Jacob
| >>
| >
| >
| >--
| >To unsubscribe, e-mail:
| ><mailto:[EMAIL PROTECTED]>
| >For additional commands, e-mail:
| ><mailto:[EMAIL PROTECTED]>
| 
| 
| _________________________________________________________________
| Add photos to your e-mail with MSN 8. Get 2 months FREE*.
| http://join.msn.com/?page=features/featuredemail
| 
| 
| --
| To unsubscribe, e-mail:   <mailto:tomcat-user-
| [EMAIL PROTECTED]>
| For additional commands, e-mail: <mailto:tomcat-user-
| [EMAIL PROTECTED]>


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

Reply via email to