To operate on the data, I use something like this:
<c:set var="details" scope="page" value="${myForm.someCollectionField}"/>
and
<c:forEach items="${details}" var="current"> . . . <c:out value="${current.someProperty}"/> . . . </c:forEach>
or simply
<c:forEach items="${myForm.someCollectionField}" var="current"/>
if you don't need to refer to the collection field anywhere but in your loop.
"myForm" would be the declared name of your form bean in struts-config.xml.
Erik
Scott Purcell wrote:
Hello,
I am trying to learn struts adn playing with some test code. I have a bean that returns an Enumeration for my view. but I cannot figure out how to get the data.
The two ways so far, have been to use the html:text and bean:write syntax.
Can I receive Objects other than strings back from a bean that is configured in the 'struts-config.xml' file? Any links to figure this out?
I am able to get normal strings back from the bean by using the following two techniques.
<html:text property="name" /> <bean:write name="menubean" property="something" />
Thanks, Scott
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]