com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn(CommonsLogger.java:49)Error setting expression 'appAcctOrgBindIp.bindIpEndip' with value '[Ljava.lang.String;@30ae8764'
ognl.OgnlException: bindIpEndip [java.lang.IllegalArgumentException: argument type mismatch]
我的代码里有appAcctOrgBindIp类属性是bindIpEndip,
前台表单里面有属性名appAcctOrgBindIp.bindIpEndip
但是对接受的参数提示以上错误
参数值为192.169.23.11
代码如下:
jsp:
结束ip: <input id="endip" name="appAcctOrgBindIp.bindIpEndip" onblur="validateip()"/>
java代码:
private AppAcctOrgBindIp appAcctOrgBindIp;
public AppAcctOrgBindIp getAppAcctOrgBindIp() {
return appAcctOrgBindIp;
}
public void setAppAcctOrgBindIp(AppAcctOrgBindIp appAcctOrgBindIp) {
this.appAcctOrgBindIp = appAcctOrgBindIp;
}
请大虾们指点下3Q了struts
ognl.OgnlException: bindIpEndip [java.lang.IllegalArgumentException: argument type mismatch]
我的代码里有appAcctOrgBindIp类属性是bindIpEndip,
前台表单里面有属性名appAcctOrgBindIp.bindIpEndip
但是对接受的参数提示以上错误
参数值为192.169.23.11
代码如下:
jsp:
结束ip: <input id="endip" name="appAcctOrgBindIp.bindIpEndip" onblur="validateip()"/>
java代码:
private AppAcctOrgBindIp appAcctOrgBindIp;
public AppAcctOrgBindIp getAppAcctOrgBindIp() {
return appAcctOrgBindIp;
}
public void setAppAcctOrgBindIp(AppAcctOrgBindIp appAcctOrgBindIp) {
this.appAcctOrgBindIp = appAcctOrgBindIp;
}
请大虾们指点下3Q了struts
setting expression 'appAcctOrgBindIp.bindIpEndip' with value '[Ljava.lang.String;@30ae8764'是说赋值时异常,appAcctOrgBindIp.bindIpEndip字段不能使用前台传过来的String型赋值。
<input id="endip" name="appAcctOrgBindIp.bindIpEndip" onblur="validateip()"/>里的值是String型的,你得确定你的appAcctOrgBindIp.bindIpEndip也是String型,或者在赋值前进行类型转换。
前台传过去的值无法转换为String类型