In a html if i press india i should get its states, and if i press australia i should get its states
-It should be in drop down list only
can some one please help me out
ypks_destiny 0 Light Poster
Recommended Answers
Jump to Posti think you need to store the states in a DB using the country as primary key.
then add an event on the onClick of your button.
On this onClick event, you will populate your dropdown list according to the records you have selected from the database.
Jump to PostIf you are new to java and don't know how to read from database then why do go and do jsp pages.
First learn java and then do jsp
First learn how to read from database and then do jsp.And even if you knew all these you …
Jump to PostBetter. Now take that code and put it in a separate class. That class will have a method that returns a List of those countries:
public ArrayList getCountries() { // your code here }
Then call that method from the jsp. Don't put connection code in the …
All 11 Replies
Eric Cute 33 Posting Whiz in Training
ypks_destiny 0 Light Poster
Eric Cute 33 Posting Whiz in Training
ypks_destiny 0 Light Poster
Eric Cute 33 Posting Whiz in Training
ypks_destiny 0 Light Poster
ypks_destiny 0 Light Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
ypks_destiny 0 Light Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
ypks_destiny 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.