struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Barr <sc...@exergonic.com.au>
Subject Re: java.lang.IllegalStateException: Cannot forward after response has been committed
Date Fri, 28 Mar 2003 00:52:24 GMT

The last time I came across this, it was in a Model 1 app. 
I had written the top of the page (page heading, menus etc...) before
including logic that forwarded the user onto another page. Do all your
forwarding logic before writing any html

Hope thats helpful

Scott
www.exergonic.com.au

On Fri, 2003-03-28 at 11:17, Becky Norum wrote:

> Does anyone know what the following exception means?
> 
> javax.servlet.jsp.JspException: java.lang.IllegalStateException: Cannot
> forward after response has been committed
> 
> It seemed to be related to something in this area of code:
> 
> //             ModuleConfig config = (ModuleConfig)
> pageContext.getRequest()
> //                 .getAttribute(org.apache.struts.Globals.MODULE_KEY);
> // 	    try {
> // 		pageContext.forward(config.getPrefix() + page);
> // 	    } catch (Exception e) {
> // 		
> 
> Thanks!
> 
> Becky
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message