File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Html:options" Watch "Html:options" New topic


Arulanand Dayalan
Ranch Hand

Joined: Aug 10, 2005
Posts: 124

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.

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.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Html:options
It's not a secret anymore!