struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrade, Ernesto (Ernie)" <>
Subject RE: html:options List
Date Fri, 13 Sep 2002 14:50:18 GMT

    <html:select property="state" size="1">
      <html:options name="allUnitedStates" labelName="allUnitedStates"/>

This worked for us with an ArrayList.


-----Original Message-----
From: Michael Lee []
Sent: Friday, September 13, 2002 10:26 AM
To: Struts Users Mailing List
Subject: html:options List

Ok, fun with html:options again!
Im trying to do this..
<%  pageContext.setAttribute("allUnitedStates", (List)Lookup.getData(Constant.GLOBAL.UNITED_STATES));%>
    <html:select property="state" size="1">
      <html:options collection="allUnitedStates"/>

This is just an array list of states. I want to use the same value as text. I've tried a million
combinations and can't see any examples. All the examples want you to create an array of beans
with getters and setters. I just want to dump a collection in there (I really need to help
out with the docs when I get done with this project).

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message