This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JSP and the fly likes Unable to fetch values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Unable to fetch values" Watch "Unable to fetch values" New topic

Unable to fetch values

Amrit Peeyush

Joined: Nov 18, 2008
Posts: 2
Hi my prob is that i am unable to fetch the values of the forms

I have one form which is having one combobox and one text box.
Onchange event of this combo i have written one function to which returns me values of the combo and displays it in the text box.

ON action of this form i have called one jsp page which fetches the value of the text box of the first form and redirects it to 3 jsp page where this value is used as input parameter of some sql query.

BUT some how it is returning null values
can any one help please


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63534

Originally posted by Amrit Peeyush:
I have one form which is having one combobox ...
No, you don't. There's no such thing as a combobox in HTML. You mean a select element. Please read this for more information.

and redirects it to 3 jsp page
A redirect causes a new request to be generated, and any submitted information on the first request is lost.

You should not be submitting to JSP pages in the first place. Servlets should be used to process data, not JSPs.

As this is more about JSP than about HTML, this post has been moved to a more appropriate forum.
[ November 21, 2008: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Unable to fetch values
It's not a secret anymore!