File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How To Output the Value of A Hidden Field?

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My JSP #2 receives a hidden field passed from JSP #1:

In the JSP #2, I have a text field:

and I want the value of the hidden field to be the text in this text field of the JSP #2. Please advise how to do it?
 
sandy gupta
Ranch Hand
Posts: 228
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if your jsp1 uses the same form bean as jsp2 and your scope of the bean is set to session, then you should see this automatically. if this is not true, then you have to set the jsp2's form bean with the value from the jsp1's form bean in your action to which jsp1 posts explicitly before sending to the jsp2.
Sahil
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic