|
Hi try this <html:select property="sizeColor" size="5" > <html:optionsCollection name="odjb" property="sizeColor"/> </html:select> Ashish --- "Gibson.Stephen" <Gibson.Stephen@burlington.com> wrote: > 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 > > > _______________________________________________ > This is the Java Programming on and around the > iSeries / AS400 (JAVA400-L) mailing list > To post a message email: JAVA400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: > http://lists.midrange.com/mailman/listinfo.cgi/java400-l > or email: JAVA400-L-request@midrange.com > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/java400-l. > ===== A$HI$H __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.