You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Sune Mølgaard <fo...@opensymphony.com> on 2007/01/07 17:36:25 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,

Fjodor
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=57292&messageID=113108#113108


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: Accessing arrays in struts2 jsp

Posted by Sune Mølgaard <fo...@opensymphony.com>.
Hmm, disregard as stupidity on my part...
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=57292&messageID=113124#113124


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org