A dropdown menu to take control over another dropdown

A dropdown menu to take control over another dropdown

  
Hi Guys,

I'm using a set of four dropdown menusn in which 1 drop menu has to take control over another.how to do it in J2EE.

ex: assume it as an dropdown:

          Year      Department
            I           Section A,B,C,D                   // if  i select I then in the deparment dropdown only A,B,C,D
                                                                               shouldbe displayed to select from one from it.
            II          Computer,Science,History    //if I select II then in the deparment dropdown only
                                                                             Comp,Sci,History should be displayed to select from it.                                            
Hi Ten Zil,

This forum is more focused on answers surrounding the Agile Platform (a platform for creating web applications) but let me see if I can help you anyway. :)

A quick search for a Java solution resulted in this:

On a web application the equivalent would be to create a JavaScript function attached to the "change" event of the 1st <select/> tag and use that to load/change the value(s) of the next <select/>.
Using jQuery here's a good shortcut:
http://www.appelsiini.net/projects/chained

Cheers,
Davide