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()); }
Ignoring for now the fact your JSP sample doesn't have any img tags ;-) I'd suggest checking for caching issues. You probably have no cache control headers on the response from displayExerciceImageAction (or not the right ones to make IE behave). Check the archives, I'm pretty sure this has come up before.
L. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

