Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

nested:select to logic:iterate or nested:iterate

Bhanu Valasa

2007-01-19

Replies:

Hello gurus....



I have struts tag in my jsp, which displays HTML select option box with
selected (a String array in the bean)



<nested:select property='<%=dataFrom+"Bean.prdIdsList"%>'
multiple="true" size="3" styleId='<%=dataFrom+"prdIds"+(index)%>'
styleClass="textField" >

<html:options collection="<%=IConstants.SESSION_ATTR_SCR_PRODUCTS%>"
property="id" labelProperty="value"/>

</nested:select>



Instead HTML Select box I want to print the String array elements in
text format.



Could some one please help me how to use logic:iterate or nested:iterate



Please suggest....



thanks



©2008 junlu.com - Jax Systems, LLC, U.S.A.