Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to fetch values

 
Amrit Peeyush
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic