You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bob Thomas <rt...@yahoo.com> on 2004/06/16 21:23:30 UTC

Tiles problem

When I do this ...
 
<tiles:insert page="layout.jsp" flush="true">
  ...
  <tiles:put name="body" value="/main.do?method=doInit" />
</tiles:insert>
 
I get the following error message:
java.lang.IllegalStateException: Cannot forward after response has been 
committed
 
What am I doing wrong?
 
Thanks in advance,
Bob


		
---------------------------------
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.

Re: Tiles problem

Posted by Joe Germuska <Jo...@Germuska.com>.
At 12:23 PM -0700 6/16/04, Bob Thomas wrote:
>When I do this ...
>
><tiles:insert page="layout.jsp" flush="true">
>   ...
>   <tiles:put name="body" value="/main.do?method=doInit" />
></tiles:insert>
>
>I get the following error message:
>java.lang.IllegalStateException: Cannot forward after response has been
>committed
>
>What am I doing wrong?

James' point is that if your servlet detects an error and you have a 
configured error page, then the servlet container will try to forward 
control to the error page.  If some of your tiles have already begun 
writing output to the response, then you'll get this error.

In theory, the TilesRequestProcessor recognizes any Struts calls to 
"processForward" and takes care to do includes rather than forwards 
when the response is already committed.  So, while I think it may be 
unorthodox to use an action to provide content for a tile, it might 
basically "work" in some cases.

However, this amounts to another form of "action chaining" with all 
the problems that pertain to that -- Struts is not designed to pass a 
single HttpServletRequest through the RequestProcessor more than 
once.  There may be lots of unwelcome side effects.

It should be possible to reorganize your tiles and actions so that 
you only need to pass through one action to set up the request so 
that your tiles can be composed exclusively of JSPs.  Have a look at 
the Controller interface (and ControllerSupport abstract class) -- it 
lets you write a bit of Tiles control logic that has access to the 
request, response, and ServletContext and you might be able to 
achieve what you need without triggering a whole second run through 
the request processor.

Maybe someone else has successfully used actions for tiles content -- 
but I suspect it's not a good long-term solution.

Joe

-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
"In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn 
back; I'll know I'm in the wrong place."
    - Carlos Santana

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tiles problem

Posted by mike <mi...@michaelmcgrady.com>.
At 12:54 PM 6/16/2004, Bob Thomas wrote:
>Here's the stack trace:
>
>java.lang.IllegalStateException: Cannot forward after response has been 
>committed
>         at 
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:371)
>         at 
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:359)
>         at 
> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
>         at 
> org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
>         at 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
>         at 
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
>         at 
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

My guess is that you are using the ServletContext's request dispatcher to 
forward the request after the response has been committed by the 
RequestProcessor.  That is a "no-no".

Are you using Tomcat 5?  If so, then, if you have code like this:


if (something) {
    forward("/somewhere", req, res);
   } else {
    // do this
   }

public void forward(String url, HttpServletRequest req, HttpServletResponse 
res)
throws IOException, ServletException {
   RequestDispatcher rd = req.getRequestDispatcher(url);
   rd.forward(req, res);
}

You need to use code like this:


if (something) {
    forward("/somewhere", req, res);
    return;
   } else {
    // do this
   }
    // continue on with the page

At any rate, you should always include a return in these circumstances.




Re: Tiles problem

Posted by Bob Thomas <rt...@yahoo.com>.
Here's the stack trace:
 
java.lang.IllegalStateException: Cannot forward after response has been committed
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:371)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:359)
        at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
        at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:742)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:630)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:542)
        at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1002)
        at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:626)
        at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
        at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
        at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
        at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
        at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
        at org.apache.jsp.AspenHedge.aspenHedgeLayout_jsp._jspx_meth_tiles_insert_2(aspenHedgeLayout_jsp.java:164)
        at org.apache.jsp.AspenHedge.aspenHedgeLayout_jsp._jspx_meth_html_html_0(aspenHedgeLayout_jsp.java:105)
        at org.apache.jsp.AspenHedge.aspenHedgeLayout_jsp._jspService(aspenHedgeLayout_jsp.java:64)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:742)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:630)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:542)
        at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1002)
        at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:626)
        at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
        at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
        at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
        at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
        at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
        at org.apache.jsp.AspenHedge.aspenhedge_005fhome_jsp._jspx_meth_tiles_insert_0(aspenhedge_005fhome_jsp.java:113)
        at org.apache.jsp.AspenHedge.aspenhedge_005fhome_jsp._jspService(aspenhedge_005fhome_jsp.java:62)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:742)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:506)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:443)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:359)
        at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
        at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:484)
 
Thanks.

mike <mi...@michaelmcgrady.com> wrote:
I haven't looked at the flush in the tiles tag, but that may commit the 
response and, so, when you do the init with your /main.do?method=doInit" 
the forward at the end of your action is not possible. Something like that 
seems to be indicated by the error message. Do you have a stack trace?

At 12:26 PM 6/16/2004, James Mitchell wrote:
>Did you configure an error page in your web.xml?
>
>
>
>--
>James Mitchell
>Software Engineer / Open Source Evangelist
>EdgeTech, Inc.
>678.910.8017
>AIM: jmitchtx
>
>----- Original Message -----
>From: "Bob Thomas" 
>To: 
>Sent: Wednesday, June 16, 2004 3:23 PM
>Subject: Tiles problem
>
>
> > When I do this ...
> >
> > 
> > ...
> > 
> > 
> >
> > I get the following error message:
> > java.lang.IllegalStateException: Cannot forward after response has been
> > committed
> >
> > What am I doing wrong?
> >
> > Thanks in advance,
> > Bob
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile phone.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

Re: Tiles problem

Posted by mike <mi...@michaelmcgrady.com>.
I haven't looked at the flush in the tiles tag, but that may commit the 
response and, so, when you do the init with your /main.do?method=doInit" 
the forward at the end of your action is not possible.  Something like that 
seems to be indicated by the error message.  Do you have a stack trace?

At 12:26 PM 6/16/2004, James Mitchell wrote:
>Did you configure an error page in your web.xml?
>
>
>
>--
>James Mitchell
>Software Engineer / Open Source Evangelist
>EdgeTech, Inc.
>678.910.8017
>AIM: jmitchtx
>
>----- Original Message -----
>From: "Bob Thomas" <rt...@yahoo.com>
>To: <us...@struts.apache.org>
>Sent: Wednesday, June 16, 2004 3:23 PM
>Subject: Tiles problem
>
>
> > When I do this ...
> >
> > <tiles:insert page="layout.jsp" flush="true">
> >   ...
> >   <tiles:put name="body" value="/main.do?method=doInit" />
> > </tiles:insert>
> >
> > I get the following error message:
> > java.lang.IllegalStateException: Cannot forward after response has been
> > committed
> >
> > What am I doing wrong?
> >
> > Thanks in advance,
> > Bob
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile phone.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tiles problem

Posted by James Mitchell <jm...@apache.org>.
I typically use this kind of structure:


(struts-config.xml)

  <action    path="/manageSomething"
       type="com.company.ManageSomething"
          name="searchForm"
          attribute="userDetail"
      scope="request"
     parameter="action">

   <forward name="search"        path="search.something.view"/>

  </action>




(tiles-defs.xml)

 <definition name="index.view"
path="/WEB-INF/jsp/layout/standardLayout.jsp">
     <put name="header.tile"      value="/WEB-INF/jsp/common/header.jsp"/>
     <put name="menu.tile"        value="/WEB-INF/jsp/view/menu.jsp"/>
     <put name="main.tile"        value="/WEB-INF/jsp/common/empty.jsp"/>
     <put name="footer.tile"      value="/WEB-INF/jsp/common/footer.jsp"/>
 </definition>

 <definition name="search.something.view"  extends="index.view">
     <put name="main.tile"
value="/WEB-INF/jsp/view/something/search.jsp"/>
 </definition>




--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

----- Original Message -----
From: "Bob Thomas" <rt...@yahoo.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Wednesday, June 16, 2004 4:11 PM
Subject: Re: Tiles problem


> So, how do I get the result of main.do into a tile? How do developers
typically get the results of a DispatchAction class method into a tile?
>
> James Mitchell <jm...@apache.org> wrote:As mike mentioned....you
should not be trying to forward after your /main.do
> completes.
>
>
>
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
>
> ----- Original Message -----
> From: "Bob Thomas"
> To: "Struts Users Mailing List"
> Sent: Wednesday, June 16, 2004 3:34 PM
> Subject: Re: Tiles problem
>
>
> > We have an error 404 page:
> >
> >
> > 404
> > /error.jsp
> >
> >
> > I'm not sure why the 'main.do?method=doInit()' doesn't get put into the
> tile.
> >
> > James Mitchell wrote:
> > Did you configure an error page in your web.xml?
> >
> >
> >
> > --
> > James Mitchell
> > Software Engineer / Open Source Evangelist
> > EdgeTech, Inc.
> > 678.910.8017
> > AIM: jmitchtx
> >
> > ----- Original Message -----
> > From: "Bob Thomas"
> > To:
> > Sent: Wednesday, June 16, 2004 3:23 PM
> > Subject: Tiles problem
> >
> >
> > > When I do this ...
> > >
> > >
> > > ...
> > >
> > >
> > >
> > > I get the following error message:
> > > java.lang.IllegalStateException: Cannot forward after response has
been
> > > committed
> > >
> > > What am I doing wrong?
> > >
> > > Thanks in advance,
> > > Bob
> > >
> > >
> > >
> > > ---------------------------------
> > > Do you Yahoo!?
> > > Take Yahoo! Mail with you! Get it on your mobile phone.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Read only the mail you want - Yahoo! Mail SpamGuard.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tiles problem

Posted by Bob Thomas <rt...@yahoo.com>.
So, how do I get the result of main.do into a tile? How do developers typically get the results of a DispatchAction class method into a tile?

James Mitchell <jm...@apache.org> wrote:As mike mentioned....you should not be trying to forward after your /main.do
completes.



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

----- Original Message -----
From: "Bob Thomas" 
To: "Struts Users Mailing List" 
Sent: Wednesday, June 16, 2004 3:34 PM
Subject: Re: Tiles problem


> We have an error 404 page:
>
> 
> 404
> /error.jsp
> 
>
> I'm not sure why the 'main.do?method=doInit()' doesn't get put into the
tile.
>
> James Mitchell wrote:
> Did you configure an error page in your web.xml?
>
>
>
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
>
> ----- Original Message -----
> From: "Bob Thomas"
> To:
> Sent: Wednesday, June 16, 2004 3:23 PM
> Subject: Tiles problem
>
>
> > When I do this ...
> >
> >
> > ...
> >
> >
> >
> > I get the following error message:
> > java.lang.IllegalStateException: Cannot forward after response has been
> > committed
> >
> > What am I doing wrong?
> >
> > Thanks in advance,
> > Bob
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile phone.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.

Re: Tiles problem

Posted by James Mitchell <jm...@apache.org>.
As mike mentioned....you should not be trying to forward after your /main.do
completes.



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

----- Original Message -----
From: "Bob Thomas" <rt...@yahoo.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Wednesday, June 16, 2004 3:34 PM
Subject: Re: Tiles problem


> We have an error 404 page:
>
> <error-page>
>   <error-code>404</error-code>
>   <location>/error.jsp</location>
> </error-page>
>
> I'm not sure why the 'main.do?method=doInit()' doesn't get put into the
tile.
>
> James Mitchell <jm...@apache.org> wrote:
> Did you configure an error page in your web.xml?
>
>
>
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
>
> ----- Original Message -----
> From: "Bob Thomas"
> To:
> Sent: Wednesday, June 16, 2004 3:23 PM
> Subject: Tiles problem
>
>
> > When I do this ...
> >
> >
> > ...
> >
> >
> >
> > I get the following error message:
> > java.lang.IllegalStateException: Cannot forward after response has been
> > committed
> >
> > What am I doing wrong?
> >
> > Thanks in advance,
> > Bob
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile phone.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tiles problem

Posted by Bob Thomas <rt...@yahoo.com>.
We have an error 404 page:
 
<error-page>
  <error-code>404</error-code>
  <location>/error.jsp</location>
</error-page>
 
I'm not sure why the 'main.do?method=doInit()' doesn't get put into the tile.

James Mitchell <jm...@apache.org> wrote:
Did you configure an error page in your web.xml?



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

----- Original Message ----- 
From: "Bob Thomas" 
To: 
Sent: Wednesday, June 16, 2004 3:23 PM
Subject: Tiles problem


> When I do this ...
> 
> 
> ...
> 
> 
> 
> I get the following error message:
> java.lang.IllegalStateException: Cannot forward after response has been 
> committed
> 
> What am I doing wrong?
> 
> Thanks in advance,
> Bob
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


		
---------------------------------
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.

Re: Tiles problem

Posted by James Mitchell <jm...@apache.org>.
Did you configure an error page in your web.xml?



--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

----- Original Message ----- 
From: "Bob Thomas" <rt...@yahoo.com>
To: <us...@struts.apache.org>
Sent: Wednesday, June 16, 2004 3:23 PM
Subject: Tiles problem


> When I do this ...
>  
> <tiles:insert page="layout.jsp" flush="true">
>   ...
>   <tiles:put name="body" value="/main.do?method=doInit" />
> </tiles:insert>
>  
> I get the following error message:
> java.lang.IllegalStateException: Cannot forward after response has been 
> committed
>  
> What am I doing wrong?
>  
> Thanks in advance,
> Bob
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org