File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to populate second combo box on the basis of first combo