Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

html Checkbox value not getting

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using <logic:iterate> tag to iterate through a list of Employees and display their details.
The list contains the Employee objects.
Now while displaying Employee details in a table, the row is ending with a check box , so that the user can select employees. The check boxes are created dynamically since they are inside the iterate tag.

Now how in Action I know that a specific employee is selected?

In action form I would get whether the check box is selected or not. But how can I relate that to employees in list?

This is my problem now i tried to solve it like this.

by adding a 'selected' field to the EmployeeBean.


Now I am getting the values of selected as false in the Action. Even though I have selected it.
I am using a action form for the some other elements in the same view.

Can some body through some light on this.

Reagrds
vishnu NV
 
vishnu vyasan
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anybody plese help me with this?
 
vishnu vyasan
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can somebody please help me with this?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic