Ok thanks, we can see there is a problem with date and mask validation
-There is no date(time) validators
-Java regular expressions are not escaped for javascript logic.



----- Original Message ----- 
From: "Dean A. Hoover" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, May 17, 2004 2:52 PM
Subject: Re: Date Time field validation


> I'm not sure if this will help but how about escaping the forward
> slashes;
>
> ^\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}$
>
> you may have to escape the backslashes as well (you have to
> do this when constructing a RE in C:
>
> ^\\d{2}\\/\\d{2}\\/\\d{4} \\d{2}:\\d{2}$
>
> don't know about javascript... just a thought.
>
> Dean Hoover
>
>
> Ivan wrote:
>
> >Hi,
> >
> >I have a form field representing a date in the format dd/MM/yyyy HH:mm
(14/05/2004 13:03)
> >My problem is that validator cannot handle time in its date validations
rutines.
> >
> >Neither using mask validation with the regular expression
^\d{2}/\d{2}/\d{4} \d{2}:\d{2}$ works, because it throw a javascript error
(!)
> >
> >date doens t work
> >mask doesn t work
> >
> >any viable solution?
> >
> >
> >regards,
> >ivan
> >
> >
>
>
>
> ---------------------------------------------------------------------
> 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