我在action中定义了一个id 属性,类型是int的,当客户端提交过来就会抛一个这样的异常不过,
<input id="id" name="id" type="hidden" value="${customerInfo.id}"/>
ognl.MethodFailedException: Method "setId" failed for object com.provence.zbtb.web.enterprise.EnterpriseListAction@1f99d54 [java.lang.NoSuchMethodException: setId([Ljava.lang.String;)]
解决办法 :
just change the logging level.
log4j.properties:
# Struts OgnlUtil issues unimportant warnings
log4j.logger.com.opensymphony.xwork2.util.OgnlUtil=error
log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=error