By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,382 Members | 2,058 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,382 IT Pros & Developers. It's quick & easy.

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

100+
P: 283
hi friends,
Im currently having a <html:select> where ive got many options value inside it...for example--->
Expand|Select|Wrap|Line Numbers
  1. <html:select property="branch" size="1">
  2.     <html:option value="New York"></html:option>
  3.     <html:option value="kingston"></html:option>
  4.     <html:option value="Los Angeles"></html:option>
  5.                   and so on.....
  6.  
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"optionsCollection> tag.
please help.Any inputs will be appreciated.
regards,
ajos
Oct 29 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.