struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3836) Struts 2 losing timestamp in java.util.Date when validation failed
Date Fri, 15 Jun 2012 20:24:44 GMT

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

Sam commented on WW-3836:
-------------------------

Similar issue logged
https://issues.apache.org/jira/browse/WW-3841
                
> Struts 2 losing timestamp in java.util.Date when validation failed
> ------------------------------------------------------------------
>
>                 Key: WW-3836
>                 URL: https://issues.apache.org/jira/browse/WW-3836
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.3.1.2
>            Reporter: Sam
>
> I have a form with java.util.Date (createTimestmp) and it has both date & time.
> createTimestmp is an hidden field on the form. When I fetch record from database it has
"5/17/12 12:58:33 PM.688" as value.
> If I change something on the form and if validation is GOOD, then creatTimestmp value
is retained to the original value. That is, its still "5/17/12 12:58:33 PM.688".
> But if the validation fails, and user goes to input form again, then createTimestmp value
changes to "5/17/12". The timestamp is missing.
> Looks like a bug to me in struts 2.
> Why is struts 2 dropping timestamp on INPUT result...?
> Can someone please help.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message