struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gmail <>
Subject How can I transfer parameters as Map type from jsp to action?
Date Wed, 06 Mar 2013 03:30:36 GMT
My code is blow,
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;
<s:iterator value="roleFunctions" var="functionItem" status="status">
<input name="roleFunctionMap[${functionItem.functionId}].roleId" type="hidden" value="${roleInfo.roleId}">

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?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message