Dynamic drop down

Posted on 2005-04-16
Last Modified: 2009-07-29

In a struts project I have to create ONE web page with around 5-6 drop downs. The content of one drop down depends on the value selected in the previous one.


drop down 1 : UK (selected)

drop down 2 : LONDON

BUT if

drop down 1 : UK
FRANCE (selected)

drop down 2 : PARIS

Can any one tell me I can achieve this.

Or how I  can get the information from the action class and pass this information (arraylists consists of available options) into a 'javascript' function and initialize the variables? These variables i can then use to populate the drop downs.

Thanks for the all the help in advance
Question by:achaljalan
    1 Comment
    LVL 8

    Accepted Solution

    This is one of the questions i am involved in.I had the same issue.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now