You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sune Mølgaard <su...@molgaard.org> on 2007/01/07 17:45:19 UTC

Accessing arrays in struts2 jsp

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@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org