A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Struts Action working with arraylist
Jayasri Alaparthi
Ranch Hand
Joined: Aug 14, 2006
Posts: 67
posted
Feb 24, 2008 21:38:00
0
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.
Thanks,
SCJP
1.4
I agree. Here's the link:
http://aspose.com/file-tools
subject: Struts Action working with arraylist
Similar Threads
updating ArrayList on parent from child window
Changing logic:iterate order using JavaScript
populating jsp page with arraylist of beans
Dependent drop down boxes with javascript?
displaying data from arrays with html:text
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter