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".
> 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.
>> >>
>> >>
>&
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--
; 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
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"
&
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
@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
ult in validation being failed.
>
> This will erase timestamp from hidden field
>
>
> 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:
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
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
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
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
12 matches
Mail list logo