我有一个场景,我想SelectOption
在更改 struts jQuery 下拉列表时将对象发送到动作类,但似乎不可能。
是否有任何解决方法或任何方法来完成这项工作?
JSP代码:
<sj:select href = "%{fetchCountry}"
id = "country"
onChangeTopics = "reloadsecondlist"
name = "country"
value = "%{country}"
list = "countryList"
listKey = "key"
listValue = "value"
emptyOption = "false"
headerKey = "-1"
headerValue = "Please Select a Country" />
注意: DropDown 由SelectOption
对象列表组成。
更新:
<s:url id="fetchState" action="json" method="fetchState" namespace="/"/>
<sj:select href = "%{fetchState}"
id = "stateID"
formIds = "formSelectReload"
reloadTopics = "reloadsecondlist"
name = "state"
value = "%{state}"
list = "stateMap"
listKey = "key"
listValue = "value"
emptyOption = "false"
headerKey = "-1"
headerValue = "Please Select a State" />