lydawen 发表于 2013-2-7 18:52:57

struts2 <s:select>标签错误

html代码:
 
<s:select list="appInfoList" theme="simple" name="appDeviceNo" id="appInfoSelect" listKey="appDeviceNo" listValue="appName" headerValue="请选择设备" headerKey="-1" onchange="getAppState()"/>
 
 
 
 
错误信息:
tag 'select', field 'list', name 'appDeviceNo': The requested list key 'appInfoList' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} -
 
这种情况一般是 'appInfoList'  (通常情况下是个List)它为null导致
页: [1]
查看完整版本: struts2 <s:select>标签错误