No quotes around the string map key?
 On Mar 5, 2013 10:32 PM, "Gmail" <rebeyond1...@gmail.com> wrote:

> My code is blow,
>
> action.java:
> public class RoleAction extends BaseAction {
> private Map<String, RoleFunctionRel> roleFunctionMap;
>
> public Map<String, RoleFunctionRel> getRoleFunctionMap() {
> return roleFunctionMap;
> }
>
> public void setRoleFunctionMap(Map<String, RoleFunctionRel>
> roleFunctionMap) {
> this.roleFunctionMap = roleFunctionMap;
> }
> }
>
> jsp:
> <s:iterator value="roleFunctions" var="functionItem" status="status">
> <input name="roleFunctionMap[${functionItem.functionId}].roleId"
> type="hidden" value="${roleInfo.roleId}">
> </s:iterator>
>
>
> when ${functionItem.functionId} is a int type number, the value can put
> into the map in action, but when it's a string can't.
>
> what's the problem?
>
>
>
>
> Gmail

Reply via email to