Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

<html:select/> problem

Options
  • 03-06-2005 4:24pm
    #1
    Registered Users Posts: 3,010 ✭✭✭


    Hi,

    using struts to create a dropdown on a jsp.

    I'm creating a page where details can be changed by selecting a new option on the dropdown, however, dropdowns always start at the first item on the list, so anybody who only wants to change one option would have to go through all of the other dropdowns and set them back to the original value.
    The dropdowns are populated by an arraylist of objects, contating a label and value variable.

    I already have the original label value on a bean, and I was wondering if there's a way to make sure the drop down has the same label as on the bean as it's default selection?

    Thanks.


Advertisement