struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sune Mølgaard <forum-struts-...@opensymphony.com>
Subject Accessing arrays in struts2 jsp
Date Sun, 07 Jan 2007 10:36:25 GMT
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


Mime
View raw message