Hello All, I joined the mailing list today itself, so please let me know if am doing anything wrong here. I am using struts2 for creating a web-application which calls to a webservice(our API) and gets the results back. Basically in the home page, there is a dropdown menu with 4 items in it. So whenever user selects a particular list from the dropdown menu the form submits, and the form changes. Each list in dropdown menu has its own form with its own fields and those fields should change when the user selects different list from dropdown menu. I am writing all this form code in a single jsp with struts if , else tag. When ever the dropdown menu changes i am using java script to submit to action. Now, the problem is i have 4 list items in the dropdown menu. 3 list items works fine, when i select the 4t list item it also works fine, but anything i select after 4t list item in the form doesn't work. The dropdown doesn't even submit to the javascript and hence the action is not called. Each list item has its own form with its own list items. Suppose i have 4 list items... insert, update, delete, truncate (just an example names). If i select insert and submit works fine, if i select truncate the page loads and populate the form for truncate, now after selecting truncate if i select insert or update or delete the form is not able to populate. And am getting following exception. I would highly appreciate your help. Hope to get reply soon.
SEVERE: Servlet.service() for servlet jsp threw exception tag 'select', field 'list', name 'selectedMetadataKey': The requested list key 'metadataKey' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location] at org.apache.struts2.components.Component.fieldError(Component.java:231) at org.apache.struts2.components.Component.findValue(Component.java:293) at org.apache.struts2.components.ListUIBean.evaluateExtraParams(ListUIBean.java:79) at org.apache.struts2.components.Select.evaluateExtraParams(Select.java:99) at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:780) at org.apache.struts2.components.UIBean.end(UIBean.java:481) at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:43) at org.apache.jsp.multipleSearch_jsp._jspx_meth_s_005fselect_005f8(multipleSearch_jsp.java:1545) at org.apache.jsp.multipleSearch_jsp._jspx_meth_s_005felse_005f1(multipleSearch_jsp.java:1489) at org.apache.jsp.multipleSearch_jsp._jspx_meth_s_005fform_005f0(multipleSearch_jsp.java:255) at org.apache.jsp.multipleSearch_jsp._jspService(multipleSearch_jsp.java:164) -- Thanks, Aamer Azeem