You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pedro Herrera <pe...@hotmail.com> on 2007/08/06 16:43:10 UTC

error to render image with action

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








-- 
View this message in context: http://www.nabble.com/error-to-render-image-with-action-tf4224558.html#a12017533
Sent from the Struts - User mailing list archive at Nabble.com.


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