I did a pr #532 for this and WW-5175, for the next struts release.

I have been doing some spring cleaning.


On 21/04/2022 07:33, Lukasz Lenart wrote:
LocalDateTime (and the whole Java 9 Time API) is not supported
directly yet by Struts - we can add a support or you can implement a
custom Converter.


Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

niedz., 27 mar 2022 o 10:35 Greg Huber <gregh3...@gmail.com> napisał(a):
Is there any config I need to use java.time.LocalDateTime instead of
java.util.Date/Timestamp

I get this error:

Error setting expression 'bean.created' with value
['2022-03-27T09:29:49.187116', ]
Invalid field value for field "bean.created".

bean:

public LocalDateTime getCreated() {
          return created;
}
public void setCreated(LocalDateTime created) {
          this.created = created;
}

<s:hidden name="bean.created" />

2022-03-27 09:29:52,645 ERROR
com.opensymphony.xwork2.interceptor.ParametersInterceptor
ParametersInterceptor:notifyDeveloperParameterException - Developer
Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'bean.created' on 'class my.myAdd:
Error setting expression 'bean.created' with value
['2022-03-27T09:29:49.187116', ]

2022-03-27 09:34:12,272 WARN org.apache.struts2.components.Date Date:end
- Developer Notification (set struts.devMode to false to disable this
message):
Expression [bean.created] passed to <s:date/> tag which was evaluated to
[2022-03-27T09:34:06.844655](class java.lang.String) isn't supported!


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

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


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

Reply via email to