Think this'll work:

<html:select property="myFormField" size="1">
  <logic:iterate id="name" name="Names">
    <bean:define id="firstName" name="name" property="first_name"/>
    <html:option value="<%= firstName %>">
      <bean:write name="firstName"/><bean:write name="name" property="last_name"/>
    </html:option>
  </logic:iterate>
</html:select>

Quoting "Cook, Graham" <[EMAIL PROTECTED]>:

> 
> Hi, Im using the RowSetDynaClass to produce a java.util.List of values from
> a database which are displayed in 
> the JSP as follows:-
> 
> 
>       <html:select property="myFormField" size="1">
>               <html:options collection="Names" property="first_name"
> labelProperty="first_name" />
>       </html:select>  
> 
> 
> What I would like to do is concatenate two fields in the java.util.List and
> use that as the labelProperty so the HTML OPTIONS would have a value of
> firstname and a label of firstname and lastname.
> 
> Has anyone got an idea on how to concatenate please?
> 
> 
>
********************************************************************************************
> " This message contains information that may be privileged or confidential
> and 
> is the property of the Cap Gemini Ernst & Young Group. It is intended only
> for 
> the person to whom it is addressed. If you are not the intended recipient,
> you 
> are not authorized to read, print, retain, copy, disseminate, distribute, or
> use 
> this message or any part thereof. If you receive this message in error,
> please 
> notify the sender immediately and delete all copies of this message ".
>
********************************************************************************************
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


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

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

Reply via email to