Hello,
I need some urgent help.
I'm just trying to use an
JSP which will display an list populated in the action class. Here is my code. The same code is using in the real project. But in my PoC setup, always I'm getting the following error
tag 'select', field 'list': The requested list key 'empList' 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:230)
at org.apache.struts2.components.Component.findValue(Component.java:351)
at org.apache.struts2.components.ListUIBean.evaluateExtraParams(ListUIBean.java:80)
at org.apache.struts2.components.Select.evaluateExtraParams(Select.java:105)
at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:856)
I have spend my whole day, to find out the problem, but still in dark.
Here is my JSP
My Action Class
My web.xml
My Struts.xml
And you can find the lib file I have used as jpg attachment.
Please help me out.
My environment
1.
Tomcat 6.0.14
2.
Struts 2.0.16