File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to pass a hidden value from a jsp to Action class in struts2 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 a hidden value from a jsp to Action class in struts2" Watch "How to pass a hidden value from a jsp to Action class in struts2" New topic
Author

How to pass a hidden value from a jsp to Action class in struts2

ganesh yadav
Greenhorn

Joined: Dec 24, 2012
Posts: 1
Hi I am new to struts2.
I have a form with a table of a list of values.I had a Edit link for every row.Whenever I am clicking the edit row.It fetch the corresponding values to the edit form.But Whenever I change the values in the form and click submit.Its not updating.I think i have to pass the value of the primary key as hidden value to the Action class method.Please find the below code


by this I am getting the values and



now i have set this masterbean as a hidden value in the jsp.Please tell me how to do this.
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Try the following Struts2 Hidden Variable Example


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
wood burning stoves
 
subject: How to pass a hidden value from a jsp to Action class in struts2
 
Similar Threads
Struts2 Session
How to get Iterating value in a list of VO struts2
Struts2 iterator
Iterating a hashmap in jsp using struts2
Struts2 variable inside javascript