File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Jsp" Watch "Jsp" New topic


yusuf khan

Joined: Jun 29, 2005
Posts: 1
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

Joined: Dec 11, 2004
Posts: 13410

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.

Look for Dynamic Select Lists.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63534

yusuf, also please read this.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Jsp
It's not a secret anymore!