This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts Action working with arraylist 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 "Struts Action working with arraylist " Watch "Struts Action working with arraylist " New topic

Struts Action working with arraylist

Jayasri Alaparthi
Ranch Hand

Joined: Aug 14, 2006
Posts: 67
Hi friends,

I am following struts framework in my project, where I am using dataaccessobject and retrieving the array list

HttpSession session = aRequest.getSession();
ArrayList box = new ArrayList();
String scenId = (String) session.getAttribute(Names.ScenId);
ProductSelectionDAO dao = new ProductSelectionDAO(scenId);
ArrayList box = dao.getProducts();
bean = new ActionForm(box[0]);
aRequest.setAttribute(Names.LeftCol, bean);
bean = new ActionForm(box[1]);
aRequest.setAttribute(Names.RightCol, bean);

Please let me how I have to iterate the colums values in jsp, and how far the above code works.

SCJP 1.4
I agree. Here's the link:
subject: Struts Action working with arraylist
Similar Threads
displaying data from arrays with html:text
updating ArrayList on parent from child window
populating jsp page with arraylist of beans
Dependent drop down boxes with javascript?
Changing logic:iterate order using JavaScript