在使用struts2 过程中写了一个登录页面,但是在action传递参数时候总是出现如下的错误,最后查知是应为在按
<INPUT type=image alt=Submit src="images/user_botton.jpg" align=absMiddle value=Submit
> </INPUT>中写了NAME="SUBMIT"的原因,删除后就好了
警告: Error setting expression 'Submit.x' with value '[Ljava.lang.String;@33c3e6'
ognl.OgnlException: target is null for setProperty(null, "x", [Ljava.lang.String;@33c3e6)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.ASTChain.setValueBody(ASTChain.java:227)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
警告: Error setting expression 'Submit.y' with value '[Ljava.lang.String;@823c6d'
ognl.OgnlException: target is null for setProperty(null, "y", [Ljava.lang.String;@823c6d)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.ASTChain.setValueBody(ASTChain.java:227)