<html:select property="carrier" > <%-- The form's property to be
populated --%>
      <html:options collection="carriers" property="id" labelProperty
="name"/>
</html:select>

carriers is a list of Carrier objects in my Session Context




                                                                                       
                                                
                      "Roland                                                          
                                                
                      Carlsson"                To:      "Struts Users Mailing List" 
<[EMAIL PROTECTED]>                   
                      <roland.c@swetra         cc:                                     
                                                
                      vel.se>                  Subject: <html:options />               
                                                
                                                                                       
                                                
                      24/10/2002 01:04                                                 
                                                
                      PM                                                               
                                                
                      Please respond                                                   
                                                
                      to "Struts Users                                                 
                                                
                      Mailing List"                                                    
                                                
                                                                                       
                                                
                                                                                       
                                                




Hello!
I'm trying to use <html:options/> but the only thing I get get into
the list
are Object.toString() values witch is not very useful for the user.

What I like to do is the equal to

<option value="<%= myObj.getId() %>"><%= myObj.getName() %></option>

Can this be done?

Thanks in advance
Roland Carlsson


--
To unsubscribe, e-mail:   <
mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:struts-user-help@;jakarta.apache.org>






--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to