wood burning stoves 2.0*
The moose likes Struts and the fly likes how to pass cell values(td) as hidden things to Action class(struts-2)? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to pass cell values(td) as hidden things to Action class(struts-2)?" Watch "how to pass cell values(td) as hidden things to Action class(struts-2)?" New topic
Author

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

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
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

Joined: Sep 29, 2008
Posts: 12617

Use a form? Use a link with GET params?
Pallu Sagar
Greenhorn

Joined: Dec 04, 2009
Posts: 16
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.


-Sagar
 
GeeCON Prague 2014
 
subject: how to pass cell values(td) as hidden things to Action class(struts-2)?