Two Laptop Bag*
The moose likes Struts and the fly likes Iterate List on jsp (struts) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Iterate List on jsp (struts)" Watch "Iterate List on jsp (struts)" New topic
Author

Iterate List on jsp (struts)

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Hi I am Iterating an arraylist on my jsp and the framework I am using is struts 1.2

the list contains three properties fldcode,fldvalue and id...

and again in id i have 2 values say messageid and type

now the logic i am using to iterate the list is shown below






in the above code I am getting the values from fldcode and fldvalue...but the id that contains messageid is also suppose to view here but i am not able to get it. here i am using logic:iterator and in that to iterate messageid again i am using it again..but not getting it properly..am i using an incorrect logic or how can i do it please help me out

list mylist contain
-fldcode
-fldvalue
-id ......id contains
--messageid
--type

want to iterate
fldcode
fldvalue
id.messageid


thanks in advance
kaustubh


No Kaustubh No Fun, Know Kaustubh Know Fun..
Sriram Ture
Greenhorn

Joined: Aug 20, 2010
Posts: 23
Hi,







Regards,
Sriram
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Iterate List on jsp (struts)
 
Similar Threads
html:checkbox element with POJO-based array not updated
nested loop using logic:iterate tag
Iterate ArrayList and call javascript menthod according to it's value on JSP
Bean's value is not setting on submit press
Get the modified value from ArrayList of HashMap.