aspose file tools*
The moose likes Struts and the fly likes error while submitting the page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "error while submitting the page" Watch "error while submitting the page" New topic
Author

error while submitting the page

Vallaru smitha
Ranch Hand

Joined: Aug 19, 2008
Posts: 87

Hi,

I am getting is this error while submitting a page with a checkbox in struts2. Can one shed somelight what it is and why does it come.

[WARN] OgnlValueStack - Error setting value <ognl.OgnlException: target is null for setProperty(null, "x", [Ljava.lang.String;@14720ef)>ognl.OgnlException: target is null for setProperty(null, "x", [Ljava.lang.String;@14720ef)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1651)
at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
at ognl.SimpleNode.setValue(SimpleNode.java:246)
at ognl.ASTChain.setValueBody(ASTChain.java:172)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
at ognl.SimpleNode.setValue(SimpleNode.java:246)
at ognl.Ognl.setValue(Ognl.java:476)
at com.opensymphony.xwork2.ognl.OgnlUtil.se

Thanks
>
Tom Rispoli
Ranch Hand

Joined: Aug 29, 2008
Posts: 349
It looks like you have an input field on your screen whose name attribute indicates to struts that it should be placed under a property named "x". Posting your jsp so we can see the full name of this input field and posting your action class (and any other classes related to this "x" property) to see the getters and setters might help.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: error while submitting the page