Here is a scenario. (Struts 1.0.2.)
I get a collection of objects and each object holds references to 2 more objects,
which are essentially beans. I want to iterate, and get data from both these beans at
once but the iterate tag allows only one bean id declaration per iterate as shown
below
You could just the bean properties from the returned object.
Say each one had a name attribute, to write it out...
logic:iterate id=iterateBean
bean:write name=iterateBean property=beanPropertyOne.name /
bean:write name=iterateBean property=beanPropertyTwo.name /
/logic:iterate
2 matches
Mail list logo