• 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.

 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!