wood burning stoves*
The moose likes Struts and the fly likes Html:options Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Html:options" Watch "Html:options" New topic
Author

Html:options

Arulanand Dayalan
Ranch Hand

Joined: Aug 10, 2005
Posts: 124
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

Joined: Feb 15, 2005
Posts: 4864
This link shows some examples of creating options lists using the <htmlptions> and <htmlptionsCollection> tags.


Merrill
Consultant, Sima Solutions
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Html:options
 
Similar Threads
How to display Hibernate Set to JSF Datatable
Collection Filtering
List box and view bean...
ListBox and View Bean
Iterator and multibox