aspose file tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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)?
 
Similar Threads
Get cell values of a JTable row.
How to store HTML table values in DB
Struts2MySQL
Struts Validation
Updating data in the JTable