Charlie, do you mean to call doChain() in servlet? I am not sure if I
understand you.

"your code" means my filter code?
"put your code there" means where?
"you need to call doChain() first", from where? Servlet?

Sorry for my confusion. Thanks!



-----Original Message-----
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 11:23 AM
To: 'Tomcat Users List'
Subject: RE: How to do filter after Servlet?


the doChain() in a filter is what calls the next filter or serlvet in the
chain, so if you want your code to process the servlet's result, then you
need to call doChain() first, then put your code there.

you will need a custom HttpServletResponse object if you want to view any
part of the response.

Charlie

> -----Original Message-----
> From: Alvin Wang [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 27, 2002 5:02 PM
> To: Tomcat Users List
> Subject: How to do filter after Servlet?
> Importance: High
>
>
> Hi! This is naive. All the examples I saw about filter are
> "pre-servlet"
> filters. So how to do a "post-servlet" filter? Do I need to setup in
> web.xml? Or do I need to do it in code (servlet/filter)?
>
> Can any guru give me a sample?
>
> Thanks a lot!
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to