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

2012-06-11 Thread Łukasz Lenart
in the browsee and note down value of field >>> >> student.createdTimestmp. It will have both date & time. >>> >> >>> >> Remove Name (make it blank) and click on Save button. >>> >> >>> >> Error will be displayed "Student Name is required".

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

2012-06-11 Thread J. Garcia
> Error will be displayed "Student Name is required". Now again take a >> look >> >> at "View Source". >> >> Field student.createdTimestmp will only have date and time will be >> >> MISSING. >> >> >> >> >&

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

2012-06-11 Thread J. Garcia
ayed "Student Name is required". Now again take a > look > >> at "View Source". > >> Field student.createdTimestmp will only have date and time will be > >> MISSING. > >> > >> > >> > >> -Original Message--

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

2012-06-11 Thread Łukasz Lenart
; On Wed, Jun 6, 2012 at 11:08 PM, s wrote: >> > >> > > Here's an JSPs, action class and struts.xml >> > > >> > > http://localhost:8080/Sample/student_edit.action       calls form/jsp >> > > studentDetails. >> > &g

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

2012-06-08 Thread s
I did > > But the question is, why 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" &

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

2012-06-08 Thread J. Garcia
mation, 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" > Subject: Re: Struts 2 losing timestamp in java.util.Dat

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

2012-06-07 Thread s
@gmail.com] > Date: 06/06/2012 12:57 PM > To: "Struts Users Mailing List" > Subject: Re: Struts 2 losing timestamp in java.util.Date when validation > failed > > On Wed, Jun 6, 2012 at 12:54 PM, s wrote: > > > I found following work around. > > Sorry can

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

2012-06-07 Thread J. Garcia
"Struts Users Mailing List" > Subject: Re: Struts 2 losing timestamp in java.util.Date when validation > failed > > On Wed, Jun 6, 2012 at 12:54 PM, s wrote: > > > I found following work around. > > Sorry can't attach source JSP, because of client res

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

2012-06-06 Thread s
en it retains time. -Original Message- From: "Dave Newton" [davelnew...@gmail.com] Date: 06/06/2012 12:57 PM To: "Struts Users Mailing List" Subject: Re: Struts 2 losing timestamp in java.util.Date when validation failed On Wed, Jun 6, 2012 at 12:54 PM, s wrote: > I

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 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 your client wishes to

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

2012-06-06 Thread s
ssage- From: "Dave Newton" [davelnew...@gmail.com] Date: 06/06/2012 12:27 PM To: "Struts Developers List" CC: user@struts.apache.org Subject: Re: Struts 2 losing timestamp in java.util.Date when validation failed And the JSP? On Wed, Jun 6, 2012 at 12:18 PM, s wrote

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 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 something o

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