wood burning stoves 2.0
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
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: 63858

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: http://aspose.com/file-tools
subject: Unable to fetch values
It's not a secret anymore!