[
https://issues.apache.org/jira/browse/WW-3841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564272#comment-13564272
]
Lukasz Lenart commented on WW-3841:
-----------------------------------
I think the problem is related how the date is displayed and why it's converted
back to value without milliseconds.
The problem is in Login.jsp which defines how to display the value:
{code:html}
<s:textfield key="user.date" value='%{getText("{0,date,dd/MM/yyyy
HH:mm:ss.SSS}",{user.date})}'/>
{code}
but as I said before, DateConverter trims .SSS part and that's why milliseconds
are dropped or rather reset to .000
> Struts 2 losing timestamp in java.util.Date when validation failed
> ------------------------------------------------------------------
>
> Key: WW-3841
> URL: https://issues.apache.org/jira/browse/WW-3841
> Project: Struts 2
> Issue Type: Bug
> Components: Core Interceptors
> Affects Versions: 2.3.3
> Environment: jdk 1.6, windows
> Reporter: J. Garcia
> Fix For: 2.3.9
>
> Attachments: struts-test_6.zip
>
>
> A full example based on struts2 blank archetype attached.
> Run with maven2: mvn jetty:run
> Url: http://localhost:8080/struts-test/example/Login
> Enter as year of birth a bad integer: 1980aaa
> You'll see the timestamp still there, BUT the milliseconds are set to zero.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira