I think I've got a very annoying 
"Response has already been committed" problem narrowed down...

The follwing jsp code does not work for me:

<%@ taglib uri="c.tld" prefix="c" %>

<c:forEach items="${listOfNumbers}" var="number">
        <c:import url="/customAction.do?number=${number}"/>
        <br/>
</c:forEach>  

Because during the c:import the response is committed, and when the
second (or third) c:import executes it dumps "Response has already been
committed". So somewhere between 
org.apache.taglibs.standard.common.core.ImportSupport.doEndTag(:179) and
org.apache.struts.action.RequestProcessor.processActionPerform(:421)
my response is getting committed.
Does anyone know where this would be?
Or has anyone experienced this problem before?
Or even better, can someone give me a solution to get around this?

I'm using struts-1.2.4, and Oracle's OC4J (Orion).
The following stacktrace hints at the methods involved between the
c:import and customAction:

at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
at 
com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
at 
com.evermind.server.http.GetParametersRequestDispatcher.newInclude(GetParametersRequestDispatcher.java:80)
at 
com.evermind.server.http.GetParametersRequestDispatcher.include(GetParametersRequestDispatcher.java:34)
at 
org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:314)
at 
org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:179)

Mick.

-- 
---<BR/> "You must be the change you wish to see in the world." Gandhi
<BR/>
<a href=http://www.harryspractice.com.au>Harry's Practice</a>
<BR/>--- 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to