错误提示:Attribute listkey invalid for tag checkboxlist according to TLD
jsp中这样写的:
<s:checkboxlist name="sysAuthority.operate_code" value="sysAuthority.operate_code" list="#request.sysOperateList" listkey="operate_code" listValue="operate_name" ></s:checkboxlist>
list值为我action取的Operate对象集合
listKey,listValue为Operate对象的属性
为什么报错呢?
jsp中这样写的:
<s:checkboxlist name="sysAuthority.operate_code" value="sysAuthority.operate_code" list="#request.sysOperateList" listkey="operate_code" listValue="operate_name" ></s:checkboxlist>
list值为我action取的Operate对象集合
listKey,listValue为Operate对象的属性
为什么报错呢?
为什么要这么写,
struts,直接在action里面sysOperateList加入get,set方法,之后直接跳转成list="sysOperateList",这样试试!
listKey="warehouseId" listValue="warehouseName" name="routeWareHouseId" list="warehouseList">
</s:checkboxlist>这样页面可以展示!