struts2中s:checkboxlist的取值问题 5
我在代码中定义了下面的内容<s:actionname="rolesSelect"namespace="/"id="roleBean"></s:action><s:chec...
我在代码中定义了下面的内容
<s:action name="rolesSelect" namespace="/" id="roleBean"></s:action>
<s:checkboxlist list="#roleBean.rList" name="roleList" listKey="id"
listValue="name" label="请选择角色" labelposition="top">
</s:checkboxlist>
xml中
<action name="rolesSelect" class="com.wotingxinwen.bg.action.RolesSelectAction">
在RolesSelectAction里面定义了rList,并给他付了值,结果总是报错
Struts Problem Report
Struts has detected an unhandled exception:
Messages:
tag 'checkboxlist', field 'list', name
'roleList': The requested list key '#roleBean.rList' could not be
resolved as a collection/array/map/enumeration/iterator type. Example:
people or people.{name}
tag 'checkboxlist', field 'list', name
'roleList': The requested list key '#roleBean.rList' could not be
resolved as a collection/array/map/enumeration/iterator type. Example:
people or people.{name} - [unknown location]
File:
org/apache/jasper/servlet/JspServletWrapper.java
Line number:
584
哪位大侠帮帮忙呀 展开
<s:action name="rolesSelect" namespace="/" id="roleBean"></s:action>
<s:checkboxlist list="#roleBean.rList" name="roleList" listKey="id"
listValue="name" label="请选择角色" labelposition="top">
</s:checkboxlist>
xml中
<action name="rolesSelect" class="com.wotingxinwen.bg.action.RolesSelectAction">
在RolesSelectAction里面定义了rList,并给他付了值,结果总是报错
Struts Problem Report
Struts has detected an unhandled exception:
Messages:
tag 'checkboxlist', field 'list', name
'roleList': The requested list key '#roleBean.rList' could not be
resolved as a collection/array/map/enumeration/iterator type. Example:
people or people.{name}
tag 'checkboxlist', field 'list', name
'roleList': The requested list key '#roleBean.rList' could not be
resolved as a collection/array/map/enumeration/iterator type. Example:
people or people.{name} - [unknown location]
File:
org/apache/jasper/servlet/JspServletWrapper.java
Line number:
584
哪位大侠帮帮忙呀 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询