Something like

  <html:select property="mobileEmailService">
    <html:optionsCollection name="mobileEmailProviders"
      property="key" value="value"/>
  </html:select>

should produce what you want. The option values/names will be retrieved from the mobileEmailProviders each time the page is rendered; nothing is hardcoded into the page. Does that not do what you need?

L.

Ken Bowen wrote:
The list comes up out of the database, and changes (slowly) over time.
There will be other cases were the list changes rapidly. So I can't hardcode it onto the page.

Antonio Petrelli wrote:
2008/3/5, Ken Bowen <[EMAIL PROTECTED]>:
 <select name="mobileEmailService" >
  <logic:iterate id="item" name="mobileEmailProviders" >
    <option value="<bean:write name='item' property='key'/>"
      <logic:equal  name="configCommsForm"
             property="mobileEmailService"
         value="<bean:write name='item'
 property='key'/>">SELECTED</logic:equal>
    >
      <bean:write name='item' property='value'/>
    </option>
  </logic:iterate>
 </select

Why did you complicate your work this way? Cannot you use simply
<html:select> putting the correct "value"?

Antonio

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




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

Reply via email to