Could some one help me on this please with some example?

 

Thanks,

Vikram

  _____  

From: Byali, Vikram G. 
Sent: Tuesday, January 11, 2011 3:48 PM
To: 'user@struts.apache.org'
Subject: retaining the values in html:select multiple="true" in jsp +
collection + struts

 

Hi,

 

    I have a multiple selection box in one of the jsp:

 

            <TR>

                      <TD height=30 class="Formblue"
valign=top><strong>Select&nbsp; Level&nbsp;:</strong></TD>

                    <TD colspan=5  class="para" >

                        <strong>

                        <html:select multiple="true"  style="width:220px"
size="3" name="MyForm" property="strLevelId" >

                        <html:options collection="arlstLevelList"
property="strLevelId"  labelProperty="strLevelName"/>

                        </html:select>

                        </strong>

                        <span class="formblue"><strong><bean:message
key="common.CtrlMessage"/></strong></span>

                   </TD>

                    </TR>

 

  When the user clicks on "Submit" it goes to another jsp.  Now the user
clicks on the back button, the selected value in the multiple selection box
is not retained.  I need your inputs to fix this.

 

 

 

 

 

 

 

 

Best Regards,

 

 Vikramsingh G B

Accenture - IDC | BANG4 | Bangalore - 560037 | e-mail:
vikram.g.by...@accenture.com | Office: +91 80 4186 3008 | Mobile: +91 99865
93789 | MOC :vikram.g.by...@accenture.com

 

<<image002.gif>>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to