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 How to populate second combo box on the basis of first combo    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 "How to populate second combo box on the basis of first combo    " Watch "How to populate second combo box on the basis of first combo    " New topic
Author

How to populate second combo box on the basis of first combo

ramesh kothakonda
Ranch Hand

Joined: Feb 14, 2006
Posts: 40
please help me its very urgent I am using struts frame work and jsp pages with mysql database. please help me getting populate second combo box on the basis of first combo box dynamically.

Thanks in advance


The object oriented way of becoming "RICH" is by INHERITANCE<br />Whoever said money can't buy happiness, didn't know where to shop.
Tim Storms
Ranch Hand

Joined: Apr 27, 2006
Posts: 64
Did you consider to use Ajax for your problem? That would be nice because there won't be a page reload. Just google it, there are many examples available which will solve your problem.


SCJP 1.5, SCWCD 1.4, SCBCD 5
ramesh kothakonda
Ranch Hand

Joined: Feb 14, 2006
Posts: 40
i tried on google(Selecting second combobox on the basis of first using ajax in java) but i failed to get the required information if you have any information can you please provide me. its very urgent for me.

My problem is in Struts Frame work i want get second combobox information on the basis of first combobox from MySql Database.

please help me.
Tim Storms
Ranch Hand

Joined: Apr 27, 2006
Posts: 64
Check this link: http://www.dhtmlgoodies.com/index.html?whichScript=ajax_chained_select or this one http://www.it-eye.nl/weblog/2005/12/13/ajax-in-struts-implementing-dependend-select-boxes/ which has a Java back-end.

Happing coding!
 
 
subject: How to populate second combo box on the basis of first combo
 
Similar Threads
retriving the values of select
How do I populate dynamic combox items
Dependent Drop-down Combo boxes
Please tell me
Displaying record from combo box