Hi,
I am getting following error if my model has a field of type java.util.Date. I 
am using struts 2.2.3. I have appropriate getter and setter method for birthday.
JSP snippet:
          <s:textfield name="user.birthday" label="Enter your birthday. 
(mm/dd/yy)"/>   

java.lang.NoSuchMethodException: setBirthday([Ljava.lang.String;)
        at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1226)
        at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1474)
        at 
ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
        at 
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)
        at 
com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)
        at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2245)
        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)
        at ognl.SimpleNode.setValue(SimpleNode.java:301)
        at ognl.Ognl.setValue(Ognl.java:737)

Regards,
Shrinivas

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to