File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
ganesh yadav
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 485
Eclipse IDE Firefox Browser Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the following Struts2 Hidden Variable Example
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic