struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Günther Wieser <gwie...@creative-it.com>
Subject RE: I look for an example of LOGIC:ITERATE that iterates over an ARRAY
Date Tue, 29 Mar 2005 13:13:13 GMT
i think the example in the docs shows you almost everything:

<logic:iterate id="element" name="myhashtable">
Next element is <bean:write name="element" property="value"/>
</logic:iterate> 

all you need to do is drop the "property" attribute as an array doesn't have
properties. then it should work fine.

so this is an "array" version:

<logic:iterate id="element" name="myArray">
Next element in array is <bean:write name="element" />
</logic:iterate> 

kr,
guenther

--
Günther Wieser

creative-it
Guglgasse 6/1/11/1
A-1110 Wien
Austria
http://www.creative-it.com


-----Original Message-----
From: Jan-Jaap Endenburg - Vera [mailto:jj.e@vera.be] 
Sent: Tuesday, March 29, 2005 1:50 PM
To: Struts Users Mailing List
Subject: I look for an example of LOGIC:ITERATE that iterates over an ARRAY

Hi everyone,

I look for an example of <logic:iterate> that iterates over an array (of
strings):
I am not sure how to display these array-values in my jsp-page: should this
be done with <bean:write>?
If so: what should I fill for name & property?

Thanks for your help!
Jan-Jaap

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




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


Mime
View raw message