Troy,

I think it should work like this

      <html:select property="cname">
         <html:options name="results" property="countryName" 
labelProperty="countryName"/>
      </html:select>

Hope it helps
Sunil




Troy Bull <[EMAIL PROTECTED]> 
10/13/2005 11:33 PM
Please respond to
"Struts Users Mailing List" <user@struts.apache.org>


To
Struts Users Mailing List <user@struts.apache.org>
cc

Subject
problem with html:select / html:options






Hi

I am trying to use the struts taglibs as much as I can and I have the 
following situation.  I have a collection object filled with DTO beans 
stored in session.  The following prints out the list as I would expect:

      <logic:iterate id="row" name="results" scope="session">
        <bean:write name="row" property="countryName"/></br>
      </logic:iterate>

and if I try this on the same page what I can't figure out is how to 
make this work:
      <html:select property="cname">
         <html:options name="results" property="countryName"/>
      </html:select>

I would like the output to be something to this effect:

  <select name="cname" id="cname">
    <option value="USA">USA</option>
    <option value="France">France</option>
  </select>

Thanks
troy

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


Reply via email to