Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-11 Thread Łukasz Lenart
time. -Original Message- From: Dave Newton [davelnew...@gmail.com] Date: 06/06/2012 12:57 PM To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts 2 losing timestamp in java.util.Date when validation failed On Wed, Jun 6, 2012 at 12:54

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-11 Thread J. Garcia
. Garcia [jogaco...@gmail.com] Date: 06/08/2012 05:15 AM To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts 2 losing timestamp in java.util.Date when validation failed With 2.3.3, it is working for me, in my own app. When input is returned, I can still see

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-11 Thread J. Garcia
losing timestamp in java.util.Date when validation failed Try using date formatting like this: s:textfield key=student.date value='%{getText({0,date,dd/MM/ HH:mm:ss.SSS},{student.date})}'/ J. On Wed, Jun 6, 2012 at 11:08 PM, s srrem...@excite.com wrote

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-11 Thread Łukasz Lenart
AM To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts 2 losing timestamp in java.util.Date when validation failed With 2.3.3, it is working for me, in my own app. When input is returned, I can still see the timestamp value in the form. Haven't tried with your

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-08 Thread J. Garcia
information, if there is no validation error...? -Original Message- From: J. Garcia [jogaco...@gmail.com] Date: 06/07/2012 12:21 PM To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts 2 losing timestamp in java.util.Date when validation failed Try using date

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-08 Thread s
it retains time information, if there is no validation error...? -Original Message- From: J. Garcia [jogaco...@gmail.com] Date: 06/07/2012 12:21 PM To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts 2 losing timestamp in java.util.Date when validation failed

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-07 Thread J. Garcia
Newton [davelnew...@gmail.com] Date: 06/06/2012 12:57 PM To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts 2 losing timestamp in java.util.Date when validation failed On Wed, Jun 6, 2012 at 12:54 PM, s srrem...@excite.com wrote: I found following work around. Sorry

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-07 Thread s
time. -Original Message- From: Dave Newton [davelnew...@gmail.com] Date: 06/06/2012 12:57 PM To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts 2 losing timestamp in java.util.Date when validation failed On Wed, Jun 6, 2012 at 12:54 PM, s srrem...@excite.com

Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-06 Thread s
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

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-06 Thread Dave Newton
And the JSP? On Wed, Jun 6, 2012 at 12:18 PM, s srrem...@excite.com wrote: 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

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-06 Thread s
losing timestamp in java.util.Date when validation failed And the JSP? On Wed, Jun 6, 2012 at 12:18 PM, s srrem...@excite.com wrote: 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

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-06 Thread Dave Newton
On Wed, Jun 6, 2012 at 12:54 PM, s srrem...@excite.com wrote: I found following work around. Sorry can't attach source JSP, because of client restrictions. Here's the trivial workaround: * Create a minimally-failing example containing essentially identical JSP. * Post it. Whether or not

Re: Struts 2 losing timestamp in java.util.Date when validation failed

2012-06-06 Thread s
/ If not validation error occurs, then it retains time. -Original Message- From: Dave Newton [davelnew...@gmail.com] Date: 06/06/2012 12:57 PM To: Struts Users Mailing List user@struts.apache.org Subject: Re: Struts 2 losing timestamp in java.util.Date when validation failed On Wed, Jun 6, 2012