• Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting values from a select box  RSS feed

 
Padma Priya
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Everyone,


I have a jsp in which i have written a java script for a select box.I have populated this select box with some dynamic values.After selecting the values from select box when click on the submit button the next page should display the values i have selected in the select box.

How can we retrieve from select box in the jsp page.

Can anybody hep me

Thanks in advance

Regards
Deepthi
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Take a look at this.

Best of luck ...
 
Hari Dhanakoti
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ Deepthi Tirunahari

If you try to handle the particular combobox you can make use of the request.getParameter("comboBox"). Here you have to specify the combo box name inside the double quotes.

Spl note:

If you are trying to make use of the object in javascript make use of the getElementById('') with the name of the object which would help you in retrieving the value of the combobox.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Wing Rider", please check your private messages for an important administrative matter.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, there is no such thing as a ""combobox" in HTML. Please read this for more information.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!