Might be a caching issue
in the action pass something random as a param and see if it works like
<s:url id="imageUr1l"
value="/Something/displayExerciceImageAction.action?position=One">
for the next image
<s:url id="imageUrl2"
value="/Something/displayExerciceImageAction.action?position=Two">
etc..
Pascal_ wrote:
>
> I'm using Struts 2.0.11 release.
>
> Within my JSP page, I'm displaying a list of elements which all have an
> image. Those images are displayed using an action with stream result.
> In Firefox, everything works fine, in IE 7.0, all images shown are the
> same, I didn't have a chance to take a look with IE 6.0.
>
> Was not able to find anything in the wiki or forums about this.
>
> In my JSP:
>
> <s:url id="imageUrl" action="displayExerciceImageAction">
> <s:param name="model.id">
> <s:property value="id"/>
> </s:param>
> </s:url>
> <s:property value= " alt="<s:text name="exercice.form.image.alt"/>"
> class="exerciceImg"/>
>
> In my struts.xml
>
> <action name="displayExerciceImageAction" class="displayExerciceAction">
> <result name="success" type="stream">
> ${model.imageContentType}
> inline;filename="${model.name}"
> ${model.image.length}
> </result>
> </action>
>
> In my action :
>
> /**
> * @return The image itself.
> */
> public InputStream getInputStream() {
> return new ByteArrayInputStream(model.getImage());
> }
>
>
>
--
View this message in context:
http://www.nabble.com/Multiple-Images---InputStream-tp18980322p18989312.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]