- Iterate tag with multiple id's? -

2002-03-21 Thread hemant
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

Re: - Iterate tag with multiple id's? -

2002-03-21 Thread Arron Bates
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