值栈显示问题(高版本要求属性为public(有些标签要求有变化))

阅读更多

报错:

tag 'select', field 'list'The requested list key 'qTypes' could not be resolved as a collection/array/map/enumeration/iterator type

 

 

 

这种问题:

1,高版本的struts标签 中的list要求不为null

public List approveStatusList = new ArrayList();

加set get

2,一般是后台属性是private,而get,set方法是public,此时应该把属性改为public

可以直接看到只要有属性有这种问题都会显示

 

 

Class: ognl.ObjectPropertyAccessor

File: ObjectPropertyAccessor.java

Method: getProperty

Line: 151 - ognl/ObjectPropertyAccessor.java:151:-1

com.opensymphony.xwork2.ognl.OgnlReflectionProvider.getBeanMap(OgnlReflectionProvider.java:98)

 

 

private List qTypes=new ArrayList();    public List qTypes=new ArrayList();

 

 

public List getqTypes() {

return qTypes;

}

 

public void setqTypes(List qTypes) {

this.qTypes = qTypes;

}

 

你可能感兴趣的:(struts)