tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfc <jfc...@btopenworld.com>
Subject Re: altering the request URI in a filter
Date Tue, 03 Sep 2002 22:06:09 GMT
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:tomcat-user-unsubscribe@jakarta.apache.org>
>>>For additional commands, e-mail: 
>>><mailto:tomcat-user-help@jakarta.apache.org>
>>>
>>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail: 
>><mailto:tomcat-user-help@jakarta.apache.org>
>>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
>
>
Charlie,

Your request dispatcher suggestion worked without the chain.doFilter.

Thanks for that!

jfc



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message