Hi, I want to use a script variable as a key for mapped property access. I am trying to render an options list of provinces based on the current country id defined in my form bean.
First I define it with <bean:define id="currentCountryId" name="companyDetailsForm" property="countryId" type="java.lang.String"/> This seems to work ok as <%="CountryId:"+currentCountryId%> is displaying the correct value. However I can't seem to use this value as a key. <html:optionsCollection name="usercontainer" property="countryProvinceHelper.provinces(<%=currentCountryId%>)" label="displayLabel" value="id"/> The generated servlet code is just using the entire string as is rather then putting in a reference to value of the script variable. I'm not clear on the syntax I need to make this work.