Win a copy of Event Streams in Action this week in the Java in General 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Use JSP hidden field within same JSP after button click

Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi There,

I am stuck with some silly problem in one of my legacy application.

Problem goes like this.

i have one URL  where i pass some parameter in URL ( URL?param=value) and open the jsp say JSP1

That param i have used inside hidden field of JSP1 as given below.

Now  after filling form, which is present in that  JSP1 user has to submit the form . But if user clicks submit, action is given to land on same page (JSP1) where i need to fetch the value of hidden field and check whether data is present or not and based on that need to invoke some java code.

to fetch the hidden field i have below code in JSP1

But queryParamis being assigned null after submission of form.

it is a legacy application, i don't have much option to make lots of code changes. So can anyone suggest if there is any another way to handle this situation.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!