• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Arthur Ford
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic