struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bailey, Shane C." <SHANE.C.BAI...@saic.com>
Subject RE: tag newbie - easy question
Date Mon, 02 Jun 2003 16:40:05 GMT


Correct me if I am wrong but I believe you can do this:
<logic:iterate id="myListRef" name="myList" scope="request">

	<bean:write name="myListRef"
property="[dataMemberNameOfObjInList]"/>

</logic:iterate>

where [dataMemberNameOfObjInList] is a fill in the blank with what it says
and not a real piece of code.

If you don't specify property attribute in the iterate tag then it assumes
you want to go to the request directly.


-----Original Message-----
From: Mike Whittaker [mailto:mike_whittaker@ntlworld.com] 
Sent: Monday, June 02, 2003 12:46 PM
To: Struts List
Subject: tag newbie - easy question


What goes in name="" to access a bean in the collection as specified below
collection is an ArrayList of beans, each bean has a getMyProperty() method

<logic:iterate id="myList" collection="<%= request.getAttribute("myList")
%>">

	<bean:write name="" property="myProperty"/>

</logic:iterate>

Thankyou

--
Mike W


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

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


Mime
View raw message