File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Html:options
 
Similar Threads
ListBox and View Bean
Collection Filtering
List box and view bean...
Iterator and multibox
How to display Hibernate Set to JSF Datatable