File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Jsp" Watch "Jsp" New topic
Author

Jsp

yusuf khan
Greenhorn

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
Sheriff

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.
http://simple.souther.us/not-so-simple.html

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
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

yusuf, also please read this.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp