It looks like your jsp is trying to do a forward too.
I seem to remember hitting this long ago - if you have ANY output in a
jsp, you cannot do a forward.
Larry
>>> [EMAIL PROTECTED] 05/22/02 04:40PM >>>
In my action I have defined:
String idxPage = "/jsp/thankyou.jsp";
and later in the code, based on error situation, I did a:
return (new ActionForward(idxPage));
and got this error:
----- Root Cause -----
javax.servlet.jsp.JspException: java.lang.IllegalStateException:
Cannot
forward after response has been committed
at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
at org.apache.jsp.thankyou$jsp._jspService(thankyou$jsp.java:218)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
Pls help. Thanks for the time.
Thinh
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>