struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cedric Dumoulin <cedric.dumou...@lifl.fr>
Subject Re: IllegalStateException: response already committed
Date Thu, 08 Nov 2001 17:17:57 GMT

  It looks like you are trying to do a forward or a sendRedirect while you have
already written something in the output page. This is not possible in jsp.

  Cedric

Steven Leija wrote:

> Hey All,
>
> I'm running into a weird exception.
>
> I'm making an invocation to a servlet which returns a LARGE String object.
> >From this, I'm passing it into a variable so that I can display it on the
> response page.  Now I can't figure out if the problem is with Struts or with
> weblogic.  I'm hitting the forward method and exiting my Action class then I
> hit this exception.
>
> Thanks for any help!
>
> Steven
>
> Here is the stack trace:
>
> java.lang.IllegalStateException: response already committed
>         at
> weblogic.servlet.internal.ServletResponseImpl.sendRedirect(ServletResponseIm
> pl.java:495)
>         at
> org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
> va:1748)
>         at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
>         at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :265)
>         at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :200)
>         at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
> ntext.java:2456)
>         at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
> :2039)
>         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


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


Mime
View raw message