aspose file tools*
The moose likes Struts and the fly likes ActionForm, ArrayList of  VLOs , and populating them in the JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ActionForm, ArrayList of  VLOs , and populating them in the JSP" Watch "ActionForm, ArrayList of  VLOs , and populating them in the JSP" New topic
Author

ActionForm, ArrayList of VLOs , and populating them in the JSP

Arthur Ford
Greenhorn

Joined: Sep 06, 2006
Posts: 22
Hi Guys,

I am working on an application which will select a set of users from the DB based on a certain condition.

Each user info is stored in a VLO.



I have an ActionForm -


All the employee details from the DB are added into an arraylist and then set to the actionform class.

This actionform class is sent to the jsp.



When I click on a particular checkbox, Only that employee should get be choosen for getting a mail/or whatever. And when I fill in the emailid, the VLO should be populated.

But When I read the form in the action class, I get it as null.

What I am trying to achieve here is a datagrid! I set the values in the table and it shoyld be saved...

Hope I was clear...Any Ideas??
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
In order to accomplish this, you will need to use indexed properties. The following two links should give you enough information to get started:

http://struts.apache.org/1.2.9/faqs/indexedprops.html

http://wiki.apache.org/struts/StrutsCatalogLazyList

Once you've read these, let us know if you still have questions.


Merrill
Consultant, Sima Solutions
 
Consider Paul's rocket mass heater.
 
subject: ActionForm, ArrayList of VLOs , and populating them in the JSP