| 
 | 
Greetings
 
I have a question regarding the use of html:select in  Struts.  I have an
array list in the session scope named StyleSizeColorList.  Each row of the
array is an "odjb" bean object.  One of the elements of this bean is a
String named sizeColor.  I want to display this in a drop down list and
allow the user to select the appropriate value on a html:form.  The list is
displayed correctly but the selected value is the literal <bean:write name
='odjb' property='style' />  I need to figure out how code the html:option
to select the value from the odjb bean property style.  
 
Can anyone point me in the right direction.
 
Here is my JSP code snippet.
 
 
<html:select property="patternColor1">
    <logic:iterate id="odjb" name="styleSizeColorList"  scope="session">
        <html:option value="<bean:write name ='odjb' property='style' /> ">
            <bean:write name ="odjb" property="sizeColor" /> 
        </html:option>  
    </logic:iterate>
</html:select>
 
Thanks for any assistance...
Steve Gibson
 
Stephen Gibson 
Lees Carpets - IT Department 
A Division of Burlington Industries 
3330 West Friendly Avenue 
Greensboro, NC 27410 
Phone 336.379.2728 
gibson.stephen@burlington.com 
 
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.