Cox, Charlie wrote:

>>>I'm getting
>>>
>>>java.lang.IllegalStateException: Cannot forward after response has 
>>>been committed
>>>
>>>... etc
>>>
>>>At the end of my filter's doFilter method I am doing the following:
>>>
>>>       if(stripped){
>>>           RequestDispatcher rd = 
>>>request.getRequestDispatcher(requestURI);
>>>           if(rd != null){
>>>               rd.forward(request, response);
>>>           }
>>>       }
>>>             chain.doFilter(request, response);
>>>
>>>Do I need to invoke the chainFilter?
>>>
>>Sorry that should be Do I need to invoke the chain.doFilter method?
>>
>
>no, put        return;         after your forward().
>
>>>jfc
>>>
>>>
>>>-- 
>>>To unsubscribe, e-mail:   
>>><mailto:[EMAIL PROTECTED]>
>>>For additional commands, e-mail: 
>>><mailto:[EMAIL PROTECTED]>
>>>
>>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: 
>><mailto:[EMAIL PROTECTED]>
>>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
Charlie,

Your request dispatcher suggestion worked without the chain.doFilter.

Thanks for that!

jfc



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

Reply via email to