Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How To Output the Value of A Hidden Field?

Ranch Hand
Posts: 1309
  • 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?
Ranch Hand
Posts: 228
  • 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.
    Bookmark Topic Watch Topic
  • New Topic