Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to pass cell values(td) as hidden things to Action class(struts-2)?

 
Pradeep Adibatla
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a table with a few rows...The user is supposed to select a row and click on submit button.Now I need to pass the cell values to action class to set them in the table present in next jsp...How to achieve this?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a form? Use a link with GET params?
 
Pallu Sagar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can try this way

Wite javascript which will read the clicked value (i.e cell values) and set that value to the hidden field on jsp... and in action get that hidden fields value.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic