Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2841FC896 for ; Mon, 11 Jun 2012 07:58:57 +0000 (UTC) Received: (qmail 37554 invoked by uid 500); 11 Jun 2012 07:58:55 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 37361 invoked by uid 500); 11 Jun 2012 07:58:55 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 37350 invoked by uid 99); 11 Jun 2012 07:58:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 07:58:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_FREEMAIL_1,FSL_FREEMAIL_2,FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lukasz.lenart@googlemail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 07:58:48 +0000 Received: by obbef5 with SMTP id ef5so8429935obb.35 for ; Mon, 11 Jun 2012 00:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=8WqBYlaV3Ze7ldxyZBp8GxqacF3/8alvgJF+CHNXWGw=; b=IIHuP8oi6tBahBDPryT1284eb/365/FBcWg/8nYnvp0mX9n+iGolo7r0mtBup1C3t7 /8Wgcse2LHvx6kIX8yXL6eRHoxDe6wo1fecRF98SJeWEq+Oc+OO7/U2fZbV9Y2Z2CdY8 32lhkgNi5vozAFw8EjTnEs/sddFU4f6Ox//SKNnbTAgFENPQGGQ5QBiO/XIHLzHVWuDF 7lHZ0RIR+Rb5wx1DY3oYoQr8u6tjNm4ThOdtlBGsqiQKNvD5QT8ijPpANAS63vagfQkk q/utuxn8kE2oh4D4MI5FoxzCLi4Pyunyuf+uCf4im5N0MSSp5CnKrtc68YiogimRAd1Z bzfA== MIME-Version: 1.0 Received: by 10.60.1.37 with SMTP id 5mr14967040oej.10.1339401508001; Mon, 11 Jun 2012 00:58:28 -0700 (PDT) Received: by 10.76.169.132 with HTTP; Mon, 11 Jun 2012 00:58:27 -0700 (PDT) Reply-To: lukasz.lenart@gmail.com In-Reply-To: References: <20120608144706.3032@web001.roc2.bluetie.com> Date: Mon, 11 Jun 2012 09:58:27 +0200 Message-ID: Subject: Re: Struts 2 losing timestamp in java.util.Date when validation failed From: =?UTF-8?Q?=C5=81ukasz_Lenart?= To: "J. Garcia" Cc: Struts Users Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yeah... I was wondering what are you doing ;-) 2012/6/11 J. Garcia : > Sorry, my mistake. > > Done: https://issues.apache.org/jira/browse/WW-3841 > > > On Mon, Jun 11, 2012 at 9:41 AM, J. Garcia wrote: >> >> Done: >> https://issues.apache.org/jira/browse/WW-3833 >> >> >> >> On Mon, Jun 11, 2012 at 9:32 AM, =C5=81ukasz Lenart >> wrote: >>> >>> Probably, please register an issue and assign the test app. >>> >>> >>> Regards >>> -- >>> =C5=81ukasz >>> mobile +48 606 323 122 http://www.lenart.org.pl/ >>> Warszawa JUG conference - Confitura http://confitura.pl/ >>> >>> 2012/6/11 J. Garcia : >>> > 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. >>> > Is this a bug? >>> > >>> > J. >>> > >>> > On Fri, Jun 8, 2012 at 8:47 PM, s wrote: >>> >> >>> >> Tried with Struts 2.3.4 and still having the issue. >>> >> >>> >> Look at "View Source" 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". Now again take a >>> >> look >>> >> at "View Source". >>> >> Field student.createdTimestmp will only have date and time will be >>> >> MISSING. >>> >> >>> >> >>> >> >>> >> -----Original Message----- >>> >> From: "J. Garcia" [jogaco.en@gmail.com] >>> >> Date: 06/08/2012 05:15 AM >>> >> To: "Struts Users Mailing List" >>> >> 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 example. >>> >> >>> >> >>> >> On Thu, Jun 7, 2012 at 7:39 PM, s wrote: >>> >> >>> >> > Yep..That's what I did.... >>> >> > >>> >> > But the question is, why it retains time information, if there is = no >>> >> > validation error...? >>> >> > >>> >> > >>> >> > >>> >> > -----Original Message----- >>> >> > From: "J. Garcia" [jogaco.en@gmail.com] >>> >> > Date: 06/07/2012 12:21 PM >>> >> > To: "Struts Users Mailing List" >>> >> > Subject: Re: Struts 2 losing timestamp in java.util.Date when >>> >> > validation >>> >> > failed >>> >> > >>> >> > Try using date formatting like this: >>> >> > >>> >> > >> >> > HH:mm:ss.SSS}",{student.date})}'/> >>> >> > >>> >> > J. >>> >> > >>> >> > 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 =C2=A0 =C2=A0 = =C2=A0 calls >>> >> > > form/jsp >>> >> > > studentDetails. >>> >> > > >>> >> > > Erase name and submit form, this will result 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" [davelnewton@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'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 admit it, it's unlikely any >>> >> > > sort >>> >> > > of >>> >> > IP >>> >> > > law would protect the usage of a hidden field and date render in >>> >> > > an >>> >> > example >>> >> > > JSP. >>> >> > > >>> >> > > Dave >>> >> > > >>> >> > > >>> >> > > >>> >> > > ----------------------------------------------------------------= ----- >>> >> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>> >> > > For additional commands, e-mail: user-help@struts.apache.org >>> >> > > >>> >> > >>> >> > >>> >> > >>> >> > ------------------------------------------------------------------= --- >>> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>> >> > For additional commands, e-mail: user-help@struts.apache.org >>> >> > >>> >> > >>> >> >>> >> --------------------------------------------------------------------= - >>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>> >> For additional commands, e-mail: user-help@struts.apache.org >>> >> >>> > >>> > >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>> > For additional commands, e-mail: user-help@struts.apache.org >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>> For additional commands, e-mail: user-help@struts.apache.org >>> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org