Servlet.service() for servlet jsp threw exception struts2 标签异常

严重: Servlet.service() for servlet jsp threw exception

tag 'select', field 'list', id 'entInterNumber', name 'entInterNumber': The requested list key 'innerNumbers' 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)

 

 

 

 

------------------------------

 

原因是由于 Action 里面没有写对应的  get() ,set() 方法, 或者写错了。

 

 

 

 

 

 

 

你可能感兴趣的:(Struts2 标签)