Hi,

I have 2 html:select on the same page.

Selection of any item of the first combobox will dynamically populate the 
second. I have it working fine.

Now, the dependant combobox, I select different item and click the submit 
button.

I got the value of the first combobox correct.
but the second combobox, I did not get the proper value.


In my form, I have the following:

    private String selectedValue = "";
    private String selectedChildValue = "";

    public String getSelectedValue() {
        return (selectedValue);
    }

    public void setSelectedValue(String theSel) {
        selectedValue = theSel;
    }

    public String getSelectedChildValue() {
        return (selectedChildValue);
    }

    public void setSelectedChildValue(String theSel) {
        selectedChildValue = theSel;
    }



*******************************************************
In my jsp, i have the following:

<table border=0>
    <tr>
        <td><bean:message key="displayDynamicCmbScreen.personname"/></td>
        <td>
           <html:select property="selectedValue" 
onchange='document.forms[0].submit()'>
                <html:options collection="PARENTS"  
labelProperty="personAbb" property="personName"/>
            </html:select>
         </td>
    </tr>
    <tr>
        <td><bean:message key="displayDynamicCmbScreen.child"/></td>
        <td>
            <html:select property="selectedChildValue" >
                    <html:options collection="childrenList" 
labelProperty="abbrName" property="personName"/>
            </html:select>
        </td>
    </tr>

</table>

***********************************************************

Please if anybody knows, let me is wrong.

Regards.

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to