Hi Aaron,
Looks like you might be having problems because you've got both your
event handler and your parameter named "image". What will happen in that
situation is you'll end up with an array of Strings as the parameter
value and request.getParameter("image") will return the first one in the
array which may be empty in your case. Try renaming one of them and see
if that fixes it.
See:
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletRequest.html#getParameter(java.lang.String)
Aaron
On 07/21/2010 11:21 AM, Aaron Stromas wrote:
Greetings,
I need to dynamically a set of images. The image data is generated by
the event handler (as explained to me on this list). I'm getting the
names of images from the collection. I'm adding a parameter with the
image name to the URL that refers to the action method generating the
image data.
<c:forEach var="path" items="${actionBean.images}" varStatus="loop">
<img src='<s:url beanclass="com...SometActionBean"
event="image"><s:param name="image" value="${path}"/></s:url>'/>
</c:forEach>
The question is how that method can get the value of the parameter. I
rather expected that I'll find it as the request attribute named
"image' but it's not the case.
TIA
-a
--
Aaron Stromas
Mobile: +1 703 203 9169
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users