my dog learned polymorphism*
The moose likes Struts and the fly likes How To Output the Value of A Hidden Field? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How To Output the Value of A Hidden Field?" Watch "How To Output the Value of A Hidden Field?" New topic
Author

How To Output the Value of A Hidden Field?

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
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

Joined: Jan 30, 2001
Posts: 228
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


Adios
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How To Output the Value of A Hidden Field?
 
Similar Threads
Struts Validation Problem
STRUTS:client-side validation using validation.xml for hidden field results in error
Show a hidden text field
Re: using javascript in jsp's
Struts <html:text ... issue.