http://www.junlu.com/
Home
»
Home (12/2007)
»
Struts 2
»
error to render image with action
Pedro Herrera
2007-08-06
I´l like to show several imagens in the page using :
<div>
<s:action name="showImage" executeResult="true" flush="false" ></s:action>
</div>
showImage is a action with result type = stream
The following error message appears :
SEVERE: Could not execute action: //showImage
java.lang.IllegalStateException
: getWriter() has already been called for
this response
at
org.apache.catalina.connector.Response
.getOutputStream (
Response.java
:573)
at
org.apache.catalina.connector.ResponseFacade
.getOutputStream (
ResponseFacade.java
:183)
at
org.apache.struts2.dispatcher.StreamResult
.doExecute (
StreamResult.java
:219)
at
org.apache.struts2.dispatcher.StrutsResultSupport
.execute (
StrutsResultSupport.java
:178)
at
com.opensymphony.xwork2.DefaultActionInvocation
.executeResult (
DefaultActionInvocation.java
:348)
what´s the solution for that ?/
Herrera
--
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.