• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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??
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic