Re: about filter

Bob Withers <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
When the final filter in a chain calls doFilter() the service method of the 
servlet is called.  If the servlet throws an exception it can be caught and 
acted upon by a filter if you wish.

try
{
     doFilter(req, resp, chain);
}
catch (Exception e)
{
      // the servlet failed
}

Regards,
Bob

At 02:18 PM 1/8/2004 +0800, you wrote:
>SERVLET-INTEREST£¡
>
>           when a method of a servlet is successful, its filter begin to 
> do something, or the filter not do anything.
>     I want to know, in filter how to know whether that method is successful?
>
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ
>Àñ£¡
>
>
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡groundsea
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡[email protected]
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2004-01-08
>
>___________________________________________________________________________
>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

___________________________________________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.