Using Struts 1.1

Problem:
Problem displaying available choices in Select option list when using
Validator sends me back to my input page.

Details:
I have 2 html select dropdown boxes on my web page. The values that appear
inside come from my database, and are sent to my form inside my form bean.
On the initial JSP rendering my page displays fine. My problem occurs when
the page doesn't pass a struts validation rule, and formbean is sent back
to my input page. My formbean property that was holding my List of objects
is now null, and  I need to redisplay the list of available choices back on
my page.


struts html that I am using

<html:select name="UserProfileForm" property="select1" styleClass=
"standardText" multiple="true">
      <html:optionsCollection name="UserProfileForm"
            property="unSubscribedGroupDisplay"
            value="grpId"
            label="grpDesc" />
</html:select>

Note:
UserProfileForm.getUnSubscribedGroupDisplay() returns a List of Objects,
and these objects have a set/getGrpId and set/getGrpDesc



The information contained in this message may be CONFIDENTIAL and is for the 
intended addressee only.  Any unauthorized use, dissemination of the 
information, or copying of this message is prohibited.  If you are not the 
intended addressee, please notify the sender immediately and delete this 
message.

Reply via email to