Gang Zhang,您好!

         the fact is that the servlet is working right! I want to add some new 
function, but I want not to modify the servlet, and to use filter to control the 
servlet. When a method in servlet method succeful,the filter do something ,or the 
filter do nothing.

        Thank you very much for you had answered my many questions!

======= 2004-01-08 22:08:00 您在来信中写道:=======

>Do you want to write debug messages? you can either
>print to standard out or print to browser screen with
>the response (for testing). Or you can log to file for
>checking
>
>Gang
>
>groundsea wrote:
>
>>Bob Withers,您好!
>>
>>       I mean how the filter control the method when the method is succeful, which 
>> do not throw Exception.
>>
>>======= 2004-01-08 05:55:00 您在来信中写道:=======
>>
>>
>>
>>>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
>>>
>>>
>>
>>= = = = = = = = = = = = = = = = = = = =
>>
>>
>>        致
>>礼!
>>
>>
>>        groundsea
>>[EMAIL PROTECTED]
>>          2004-01-09
>>
>>___________________________________________________________________________
>>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

= = = = = = = = = = = = = = = = = = = =
                        

        致
礼!

                                
        groundsea
[EMAIL PROTECTED]
          2004-01-09

___________________________________________________________________________
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