My problem now is how to validate the entered date so that it will check if
the EndDate is higher than the
StartDate..
--
View this message in context:
http://www.nabble.com/Date-validation-%28month-and-day%29-tf4376264.html#a12514017
Sent from the Struts - User mailing list archive at Nabble.c
I already solved it, in my form I added another field (maxDay1 and maxDay2)
that will return OK and NG, i used this field in my validation.xml using
validwhen, when the field
is equal to OK, then it is valid, if it is NG, it is invalid..
This is my code, it also checks number of days in february
You may be able to do it with a very complex validwhen validation. However,
in these instances, it's best to write your own validator.
Paul
On 9/5/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> Hiroyuki Suzuki wrote:
> > ello guys!
> >
> > How would I check my date input so that it will validat
Hiroyuki Suzuki wrote:
ello guys!
How would I check my date input so that it will validate
the maximum days per month.
For example:
Jan, Mar, May, Aug, Oct, Dec (31 days)
April, June,Sept, Nov (30 days)...
Please share me your ideas..
Addtional: Separate field name for month and day.
There's
Hi,
what exact value did you enter with the date pattern MM/dd/yy?
I dont like datePatternStrict because you have to enter the leading zero for dd
and MM; and the year should format according to java.text.SimpleDateFormat
rules.
I use dd/MM/ (not strict) and the user can type the full yea
This is how I do it:
dateFormat
dd/MM/
...
...
...
datePattern
${dateFormat}
-Original Message-
From: vacak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 22, 2006 10:41 AM
To: user@struts.apache.org
Subject: Date validation
Hi,
I use
ce. 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 a
Commons Validator's JavaScript only support day/month/year validation.
Niall
On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:
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. HH:mm" but I saw th
ect, 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 sid
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
no i did not; but i cannot use it as i want to allow single digit
months/days in user input.
more generally; i wud have expected the DateValidator to return FALSE if
the user input is form "1980" for pattern "-MM-dd"
anybody wanna weigh in? :)
riyaz
[EMAIL PROTECTED] wrote:
Sorry i
Sorry if you get this twice.
Did you try DatePatternStrict?
Erik
-Original Message-
From: Riyaz Mansoor <[EMAIL PROTECTED]>
Sent: Jun 6, 2005 4:49 PM
To: Struts Users Mailing List
Subject: date validation
i've got a date validation set up with datePattern "-MM-dd", ie
standard
Thanks for the reply, do not know why the same is not working properly for me
but will try it out again.
regards
Manisha
Vaclavik Radek <[EMAIL PROTECTED]> wrote:
Hi,
this works fine for me (in validation.xml file). I see no problem with using
datePattern...
depends="required,date">
datePat
Hi,
this works fine for me (in validation.xml file). I see no problem with using
datePattern...
datePattern
dd.MM.
Radek
> -Original Message-
> From: Manisha Sathe [mailto:[EMAIL PROTECTED]
> Sent: We
Is the date format changed because of the user's language selection or
particular country? If so, validation supports country and language
extensions for that purpose.
Regards,
David
-Original Message-
From: Mohd Amin [mailto:[EMAIL PROTECTED]
Sent: Friday, December 03, 2004 4:23 AM
To:
Thanks for the response.
>You can specify the action
> path in the tag instead of the form name, and the
> javascript tag will work fine -- basically, html:javascript looks for
> the literal value from " in the Validator XML config
> -- whether it be a form name (ValidatorForm, DynaValidatorF
The commons-validator date validation indeed, can only validate a
single date pattern. Joe Hertz made a good point that you must have
the multi-format parsing problem solved, so subclassing a
ValidatorForm will probably be a good solution.
However, I don't understand your other comment:
I don'
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 24, 2004 8:58 AM
> To: Struts Users Mailing List
> Subject: Date Validation
>
>
>
>
>
>
> When I search the archive I get no results for the word "date" so here
> goes.
>
> I've been us
Let me ask you this:
Presumably whatever the user enters is going to be used to construct a Date
object.
And if you do that, you presumably also know which of the various formats it
got entered in.
And if you have the logic somewhere to divine which format it's in, it
sounds like you have what y
19 matches
Mail list logo