tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cox, Charlie" <c...@cincom.com>
Subject RE: altering the request URI in a filter
Date Tue, 03 Sep 2002 16:53:19 GMT
> > 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>


Mime
View raw message