It's not a secret anymore!
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
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
jQuery in Action, 3rd edition