It seems that there is a bug with <datetimepicker> tag. I defined it as in 
documentation:
   
  <s:datetimepicker name="delivery.date" label="Delivery Date" 
format="#yyyy-#MM-#dd"  />
   
  I have delivery object in my action class with date field (of type 
java.util.Date) and all necessary get/set methods. But when I submit the form I 
get this error:
   
  17:55:47,968 ERROR 
com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - 
ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 
'delivery.date' on 'class com.myProject.actions.MyTestAction: Error setting 
expression 'delivery.date' with value '[Ljava.lang.String;@3b678'
   
  It seems that Struts 2 always send String for any type of tag and that it 
cannot set Date ?

  --
  Thx in advance, Milan

       

Reply via email to