Apologies for this newbie question...
I have 2 selections: Country and City
I have 2 collections in session (CityList contains a reference to Country)
I don't want the user to select a City before selecting a Country and I want
to display a list of Cities that relate to the selected Country...
Can anyone please help with this code:
...
<tr>
<td>Country</td>
<td>
<html:select property="country"
onchange="document.forms['myForm'].city.value='';
document.forms['myForm'].submit();">
<html:option value="">Select a country...</html:option>
<html:options collection="CountryList" property="country"
labelProperty="description" />
</html:select>
<font color="red"><html:errors property="country" /></font>
</td>
</tr>
<tr>
<td>City</td>
<td>
<html:select property="city">
<html:option value="">Select a city...</html:option>
<logic:iterate id="City" name="CityList" property="list"
type="City">
<<<<<-----------------------------------------------------------------------
------
<logic:equal name="City" property="country" value="">
!!! This is where I'm stumped. How do I get the comparison to work between 2
beans?
>>>>>-----------------------------------------------------------------------
------
<html:option name="City" property="city"
labelProperty="description" />
</logic:equals >
</logic:iterate>
</html:select>
<font color="red"><html:errors property="city" /></font>
</td>
</tr>
...
Any help much appreciated!
Derek
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]