This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to pass cell values(td) as hidden things to Action class(struts-2)?