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
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡sunyh@(protected)
>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2004-01-08
>
>___________________________________________________________________________
>To unsubscribe, send email to listserv@(protected)
>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 listserv@(protected)
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