aspose file tools*
The moose likes JSP and the fly likes select values for second drop down Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "select values for second drop down" Watch "select values for second drop down" New topic
Author

select values for second drop down

abhay patil
Greenhorn

Joined: Apr 26, 2007
Posts: 9
Hi All
Can any one help me?
I am trying to select a value from the dynamic drop down and depending upon my selection[i.e. state name] I would like to display all the related cities in the second drop down.
Here is the code:




[BPSouther: Added code tags and fixed encoded chars]
[ August 20, 2007: Message edited by: Ben Souther ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61206
    
  66

Your code is pretty much unreadable. Please use UBB code tags to preserve its formatting, and please do not replace < > with lt and gt.

If you have trouble posting code, it's usually becasue you have JavaScript that is filtered: phrases such as: onclick or eval.

Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

So...
What part is giving you trouble?
Since we can't run your code without your database, could you tell us what happens when you run it?
What, if anything, is different from what you're expecting?
[ August 20, 2007: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
abhay patil
Greenhorn

Joined: Apr 26, 2007
Posts: 9
Hi all
I am trying to access all the values of countries from the database.
Depending upon the value I have selected my second drop down list should get populated with all the states from the selected country.
Now depending upon my selection for the second drop down my third drop down should get populated with all the cities of that state.
So I am expecting something like this:
First drop down (Country Name from the database)

Second drop down (State name from the data base where country name = Selected by the user in the first drop down)

Third drop down (City name from the data base where country name = selected by the user in the first drop down && state name = selected by the user in the second drop down
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: select values for second drop down