people or people.{name} org.apache.jasper.JasperException s:select使用

来源:互联网 发布:windows图形编程pdf 编辑:程序博客网 时间:2024/06/07 05:30

org.apache.jasper.JasperException: tag 'select', field 'list', name 'productList': The requested list key 'selectListProduct' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]


##Action.java

private List<Map<String, String>> selectListProduct;//产品-下拉列表


##.jsp

<s:select name="productList" list="selectListProduct"  listKey="id" listValue="name">

</s:select>


出现如上错误



解决:原来是set、get没有提供。如果提供了肯定是,修改了属性名称,从而导致问题出现。

0 0
原创粉丝点击