Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Html:options

 
Arulanand Dayalan
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a collection of bean with lable name and label values. I set this collection as property of form bean. In the JSP i need to show this collection in a list box. So i used to populate the list box using html ptions. My problem is i am not using collection, so i dont know how to set the options.Can any one help me how to set this collection object to list box.

Thanks in Advance.

Regards,
Arul.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This link shows some examples of creating options lists using the <htmlptions> and <htmlptionsCollection> tags.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic