how to reduce the code from <html:select> tag

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ajos
    Contributor
    • Aug 2007
    • 283

    how to reduce the code from <html:select> tag

    hi friends,
    Im currently having a <html:select> where ive got many options value inside it...for example--->
    Code:
    <html:select property="branch" size="1">
    	<html:option value="New York"></html:option>
    	<html:option value="kingston"></html:option>
    	<html:option value="Los Angeles"></html:option>
                      and so on.....
    what i want to achieve is no reduce all the code ie the <html:option value="Los Angeles"></html:option> part and populate this part from a collection where the options come from a collection object from my action form.how will i achieve this using <html"optionsCo llection> tag.
    please help.Any inputs will be appreciated.
    regards,
    ajos
Working...