Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes HTML, CSS and JavaScript and the fly likes Dropdown values for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dropdown values for JSP" Watch "Dropdown values for JSP" New topic
Author

Dropdown values for JSP

p s kk
Greenhorn

Joined: Sep 27, 2010
Posts: 1
HI friends,

I need your help. I am new to jsp. here is my question

I have a JSP page with a drop down box. When the page first loads it gets data from server and loads the drop down box. The user selects one value. Based on this value, the second drop down box will show relative option.

For eg: the first Drop DOWN has the following entries.

Value 1
Value 2
Value 3

if the user selected Value 3 in the first drop down, it should show another value in the second dropdown

Thanks in advance for your help.

sri
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Not really a JSP question as the most common solution uses JavaScript and Ajax. This is also a common question that gets asked often. Please SearchFirst.

I have moved this to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Dropdown values for JSP
 
Similar Threads
how to populate dropdown box dynamically
Dependent dynamic drop downs
Problem in Reset button.
JSP and Dropdown Box
help me regarding this selection box problem...