HI,

Client side validation is usefull as you say (allthough you should
still always validate serverside as well). Unfortunately not all
things are given to us, so somethings we have to write for ourselves.
I think for most purposes date without time are sufficient, so that's
why it was done that way.

On 6/27/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:
Hi,

Ok, that means client side date validation is still not perfect. The point is, 
in a big application it is very usefull to have client side validation, even to 
unburden the server and have a better performance. Are you interessted in 
having such a validation on the clients side.

Best regards,
Halgurt

-----Ursprüngliche Nachricht-----
Von: The Jasper [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 26. Juni 2006 17:50
An: Struts Users Mailing List
Betreff: Re: Date Validation on the Clients side


hi,

Looking at the js, I agree that this won't work, but that's only
client side. Server side validation should work, because that makes
use of SimpleDateFormat. So unless your pattern is being cut off
somewhere I would expect that to do the trick. For client side you
probably will have to write the js code to check for minutes and
seconds.

mvg,
Jasper

On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Yes I tried it, but no success.. I am using Struts 1.2.9 and 
commons-validator.jar 1.3.0 I had a look at validateDate.js and it seems for me 
not to be correct, it seems so, but whether or not, I am not sure.
>
> mvg,
> Halgurt
> PS:I appreciate your help, many thanks:-)
>
> -----Ursprüngliche Nachricht-----
> Von: The Jasper [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 26. Juni 2006 17:11
> An: Struts Users Mailing List
> Betreff: Re: Date Validation on the Clients side
>
>
> Hi,
>
> shot in the dark here, but have you tried datePatternStrict instead of
> datePattern?
>
> mvg,
> Jasper
>
> On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:
> > Hello All,
> >
> > I posted today the message below, unfortunately without any success. May be can 
somebody tell me if it is at all possible to validate date values like  "dd.MM.yyyy 
HH:mm" on the clients side. I really appreciate your help, it is really urgent.
> >
> > Best regards,
> > Halgurt
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Halgurt Mustafa Ali
> > Gesendet: Montag, 26. Juni 2006 13:04
> > An: user@struts.apache.org
> > Betreff: Date Validation like "dd.MM.yyyy HH:mm"
> >
> >
> > Hello all,
> >
> > Well I am trying to validate a field on the clients side. The field schould be validatet as a date in 
this format: "dd.MM.yyyy HH:mm" but I saw that the time would not be considerd, although I initialize 
datePattern in validation.xml with this value "dd.MM.yyyy HH:mm", the date will be validated against 
"dd.MM.yyyy". below is my formset in validation.xml:
> >
> > <formset>
> >         <form name="REPORTform">
> >                 <field property="datumVonLaufzeiten" depends="date">
> >                 <arg position="0"  key="REPORTform.datumVonLaufzeiten"/>
> >         <var><var-name>datePattern</var-name><var-value>dd.MM.yyyy 
HH:mm</var-value></var>
> >                 </field>
> >                 <field property="datumBisLaufzeiten" depends="date">
> >                 <arg position="0" key="REPORTform.datumBisLaufzeiten"/>
> >         <var><var-name>datePattern</var-name><var-value>dd.MM.yyyy 
HH:mm</var-value></var>
> >                 </field>
> >         </form>
> > </formset>
> >
> > I had a look at the validateDate.js in commons-validator.jar and I think it 
would not do that, what I want. Has anybody an Idea what am I doing wront, or do I 
have to do different.
> >
> > Thank you in advance for your help,
> > Halgurt
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to