This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes getting values into the drop down list from database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "getting values into the drop down list from database " Watch "getting values into the drop down list from database " New topic
Author

getting values into the drop down list from database

sudhakar ananth
Ranch Hand

Joined: Feb 02, 2007
Posts: 68
i have three dropdown lists
ok

when i opened or load the JSP page it should values from the database into the
1st dropdown list

when i select any value in the this dropdown list it shown load the 2nd dropdown list

and similarly on selecting any value from 2nd dropdown list ten i have get value into 3rd drop down list


when i ask my friends they said concept of "virtual submit" and
said tat we can call the
submit in 'onChange' attribute

but how can we get values loaded into the JSP while loading
and they said that it can be done"by callind .do at the database level

if above methods are correct any explain how or please provide me link so that i can myself

or solutions please
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This is referred to as "dependent dropdowns" or "dependent selects". It has been discussed recently in this forum in this thread. In addition, you will find a lot of information by "Googling" this topic.

After reading the other thread, let us know if you have more questions.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting values into the drop down list from database
 
Similar Threads
how to populate dropdown box dynamically
dropdown selection in Struts2
dependent drop down list
Auto generate drop down list
selecting a value in dropdown