Pretty sure you can just do:

<html:options name="listOfOptionValues"/>

It should use the list for both the values and the labels. If the list is a
property on your form:

<html:options property="listOfOptionValues"/>

If the list is a property of some other bean:

<html:options name="someBean" property="listOfOptionValues"/>

Quoting Kumar M <[EMAIL PROTECTED]>:

> 
> Hi all,
> 
> I have an ArraList of strings that I want to show in a drop-down box. The 
> same thing is both the label as well as the value. Can anybody tell me how I
> 
> can do this using html:options? The collection in html:options is expected 
> to hold JSP beans, which is not the case in my situation.
> 
> Thanks in advance!

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to