大师
an exception occured while executing the prefix method
java.lang.reflect.InvocationTargetException at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
Could not find action or result
There is no Action mapped for action name >. - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:178)
at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
严重:
Servlet.service() for servlet jsp threw exceptiontag 'select', field 'list', name 'showType.infoType': The requested list key '#session.typeMap' 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:237)
at org.apache.struts2.components.Component.findValue(Component.java:358)
------解决方案--------------------There is no Action mapped for action name >.
这个名字的, 没有action与之对应。
The requested list key '#session.typeMap' could not be resolved as a collection/array/map/enumeration/iterator type 这个不能被转换成一个集合, 看你是传的对象还是集合?
------解决方案--------------------估计是你转发到JSP时,用的Strut2Select标签中的list为空导致的
------解决方案--------------------
Could not find action or result没有找到对应的action或结果(检查struts2.xml)
There is no Action mapped for action name没有与action映射的名字(检查struts2.xml)
tag 'select', field 'list', name 'showType.infoType': The requested list key '#session.typeMap' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name}
select标签,list字段,属性showType.infoType:这个请求的list的KEY值#session.typeMap不能够作为一个集合/数组/MAP/枚举/遍历类型,例如:people 或people.{name}