Hello
I am newbie to Struts, I have a form class viz: HierAddForm, this form has a member variable called company which is an ArrayList. This company array is nothing but array of objects of class AddDTO. The class AddDTO looks like as shown below
public class AddDTO {
private String city;
private String name;
private String zip;
.....
Corresponding setter and getter methods go here...
}
How do I use the logic:iterate tag to display City, Name and Zip in my jsp page ?
Thanks in advance
JP
-
Struts- logic:iterate tag (3 messages)
- Posted by: Jay Pawar
- Posted on: August 27 2004 15:14 EDT
Threaded Messages (3)
- Struts- logic:iterate tag by soudathikar madhu raj on September 16 2004 05:32 EDT
- Struts- logic:iterate tag by Ameeta Dabke on September 27 2004 03:39 EDT
- but if i want to populate text boxes by Gurpreet Kohli on March 08 2005 08:11 EST
-
Struts- logic:iterate tag[ Go to top ]
- Posted by: soudathikar madhu raj
- Posted on: September 16 2004 05:32 EDT
- in response to Jay Pawar
Hi Jayu
Hope that this works
<logic:iterate id="element" name="HierAddForm" property="company">
<bean:write name="element" property="city"/>
<bean:write name="element" property="name"/>
<bean:write name="element" property="zip"/>
</logic:iterate> -
Struts- logic:iterate tag[ Go to top ]
- Posted by: Ameeta Dabke
- Posted on: September 27 2004 03:39 EDT
- in response to soudathikar madhu raj
This was a very good info.Stated in simple words & understood.
Thanks! -
but if i want to populate text boxes[ Go to top ]
- Posted by: Gurpreet Kohli
- Posted on: March 08 2005 08:11 EST
- in response to soudathikar madhu raj
hi madhu
if i have an arrayObject and i want to fill this array from user.Suppose there are 5 rows in a table with similar type of inputs from user.?
Suppose u got what i want to say.....
i got stuk .need help
Thanx