Oops, I think, I have an egg on my face - I was using getParameter() to get
the parameter, I used getAttribute() in my trace. And there was a problem
elsewhere in generating the image. In short, your suggestion was correct.
Thanks again!

-a

On 21 July 2010 14:49, Aaron Stromas <passog...@gmail.com> wrote:

> Aaron,
>
> Thanks for the suggestion. Unfortunately, it did not. The generated URL
> looks like this, but there is no imagename attribute in the request.
>
>
>
> <img src='/Registration/Some.action?image=&imagename=000000321338RS.jpg'/>
>
>
> -a
>
>
> On 21 July 2010 14:31, Aaron Porter <aa...@mongus.com> wrote:
>
>>  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)<http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletRequest.html#getParameter%28java.lang.String%29>
>>
>> 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 
>> liststripes-us...@lists.sourceforge.nethttps://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
>> Stripes-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
>
> --
> Aaron Stromas
> Mobile: +1 703 203 9169
>
>


-- 
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
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to