File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Unable to fetch values" Watch "Unable to fetch values" New topic
Author

Unable to fetch values

Amrit Peeyush
Greenhorn

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

Thanks

Amrit
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Unable to fetch values