Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Accessing arrays in struts2 jsp

Sune Mølgaard

2007-01-07


I <s:iterator value="images">, which iterates over a List of String[].

I then

<s:push value="top" id="image">
<s:property />
</s:push>

To get such an array available with key "image".

I would then like to

<s:property value="image[0]">
<s:property value="image[1]">
<s:property value="image[1]">

but any number in []'s is accepted (or, rather, ignored), giving me the
full contents of the array instead of the entry specified.
What could I be doing wrong?

Best regards,

Sune M?lgaard

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.