Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple objects in a list -problem with html:hidden

 
Aparna Sharma
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does one handle multiple objects of the same kind?
for eg, I have a list of employees in a page. clicking on one of them takes me to a detail page. I want to set some hidden parameters so that I can populate the next page with the selected employee object's details.

but i can say <html:hidden property="ssn"> inside the logic:iterate tag only.
I am getting the html:hidden properties as null in the action class.
Is it bcoz there is not a way to distinguish b/w the different objects?

Has anyone come across this problem? Please let me know your comments/suggs.

Thanks,
Aparna
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Option A is to look at the name attribute of the html:hidden tag.

Option B is to set up some JavaScript on the link, generated within the iteration.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic