struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3841) Struts 2 losing timestamp in java.util.Date when validation failed
Date Mon, 28 Jan 2013 13:05:13 GMT

    [ https://issues.apache.org/jira/browse/WW-3841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564258#comment-13564258
] 

Lukasz Lenart commented on WW-3841:
-----------------------------------

That how the DateConverter was designed. You can either use Timestamp and then milliseconds
are supported or to write your own converter and register it [1]

I am not sure if changing current implementation of DateConverter is a good idea as thus can
break backward compatibility.

[1] http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-CreatingaTypeConverter
                
> 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

Mime
View raw message