Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp

 
yusuf khan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to make a jsp page with two combobox but problem is that value of second combobox depend on the value of first combobox value.and value is coming from database.
for example i have two combobox first combobox store the car's name and second combobox store car model and value in the both combobox coming from database.when i select "ford" from first combobox after this value is second combox box should be all "ford" model.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is one of the most common questions asked in the JSP forum.

Search that forum with "select", "list", "dynamic", and "combobox" and you will find plenty of discussions on the subject.

I also have an example app that does this using an MVC pattern which you're free to download and use.
http://simple.souther.us/not-so-simple.html

Look for Dynamic Select Lists.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yusuf, also please read this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic