Date Validation not validating 01/01/2ee0 date in struts 1.2

2013-02-20 Thread Ashish
Hi I am trying to add date validation in validation.xml file, i have it setup as below, it validates properly data entry like 0A/01/2012 or 01/A2/2012 but it makes date 01/01/2ee3 to be a valid date which is clearly not, what am i missing constant constant-namedateFormat/constant-name constant

Date Validation using session Locale

2009-07-27 Thread David T. Webb
I am using Struts 1.3.10  and I am trying to achieve client side javascript date validation using the default datePattern from the user's session Locale.  Objective is to validate any date format based on Locale without specifying a specific pattern. My Form field validation rule

Date Validation in Struts 2

2009-07-16 Thread Siddiq Syed
validate the date(which implicity take care of leap year validation with MM/DD/YYY format) and without giving the date range. The field type defined in my view bean is java.util.date. Thanks Siddiq. -- View this message in context: http://www.nabble.com/Date-Validation-in-Struts-2-tp24521605p24521605

Date validation in struts 2

2009-07-16 Thread Siddiq Syed
Hi all, I am trying to validate the date field through the xml by using the date validator defined.   field-validator type=date The problem with this is we can't have leap year validation with this, nor formate validation and need to specify the date range. Is there any way where I can

Re: [jira] Resolved: (WW-3139) Date validation - Ubuntu 9.04 - struts 2.0.14

2009-05-25 Thread Simone Buzzi
-3139. - Resolution: Not A Problem Pleas ask question on the user mailing list. Also see the documentation for details on what locale struts uses to parse the date Date validation --- Key: WW-3139 URL: https

Date validation allows 09/22/2dff

2008-09-22 Thread ps_kishore
Hi, i have a date validation allows year if it starts with number. If i try to put the year as dff2: or no number like ddff it throws validation error. But when I enter 2dff it doesnt throw any validation error. Here is the validation block field property=datefield depends=date

Re: Hello all: Date Validation... An old issue, i guess...

2008-05-22 Thread Gabriel Belingueres
did you tried ${dateStart}? 2008/5/20, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi all, i'm Dome, from Italy, and i'm having my troubles with Date Validation on Struts 2 :| Using xml validation, and need to validate a date. Let's say i have 2 dates taken from html form. I need the second one

Re: Hello all: Date Validation... An old issue, i guess...

2008-05-22 Thread Milan Milanovic
(because of format problem), but I got the same error ? -- Thx, Milan Gabriel Belingueres [EMAIL PROTECTED] wrote: did you tried ${dateStart}? 2008/5/20, [EMAIL PROTECTED] : Hi all, i'm Dome, from Italy, and i'm having my troubles with Date Validation on Struts 2 :| Using xml validation

Re: Hello all: Date Validation... An old issue, i guess...

2008-05-22 Thread Milan Milanovic
${dateStart}? 2008/5/20, [EMAIL PROTECTED] : Hi all, i'm Dome, from Italy, and i'm having my troubles with Date Validation on Struts 2 :| Using xml validation, and need to validate a date. Let's say i have 2 dates taken from html form. I need the second one (if it does exist

Re: Hello all: Date Validation... An old issue, i guess...

2008-05-22 Thread Gabriel Belingueres
${dateStart}? 2008/5/20, [EMAIL PROTECTED] : Hi all, i'm Dome, from Italy, and i'm having my troubles with Date Validation on Struts 2 :| Using xml validation, and need to validate a date. Let's say i have 2 dates taken from html form. I need the second one (if it does exist

Re: Hello all: Date Validation... An old issue, i guess...

2008-05-22 Thread Milan Milanovic
for datetimepicker field as String (because of format problem), but I got the same error ? -- Thx, Milan Gabriel Belingueres wrote: did you tried ${dateStart}? 2008/5/20, [EMAIL PROTECTED] : Hi all, i'm Dome, from Italy, and i'm having my troubles with Date Validation on Struts 2 :| Using xml

Hello all: Date Validation... An old issue, i guess...

2008-05-20 Thread [EMAIL PROTECTED]
Hi all, i'm Dome, from Italy, and i'm having my troubles with Date Validation on Struts 2 :| Using xml validation, and need to validate a date. Let's say i have 2 dates taken from html form. I need the second one (if it does exist: it is not mandatory, actually) to be after the first one

[S2] Date Validation

2008-04-05 Thread Rodrigo Pereira
Hi, how can I validate a datetime picker? I have the following in my validation.xml file: field name=date field-validator type=required message key=errors.date.required/ /field-validator /field but I am getting this error message: 05/04/2008 14:53:41

Re: [S2] Date Validation

2008-04-05 Thread Jeromy Evans
Rodrigo Pereira wrote: Hi, how can I validate a datetime picker? ... SEVERE: Could not parse date java.text.ParseException: Unparseable date: I don't think that's caused by the validation. That error occurs when the DatePicker attempts to set its current value but the value is an

Re: Date validation (month and day)

2007-09-05 Thread Laurie Harper
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.

Re: Date validation (month and day)

2007-09-05 Thread Paul Benedict
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 validate the

Re: Date validation (month and day)

2007-09-05 Thread Hiroyuki Suzuki
; return maxDay2; } public void setMaxDay2(String maxDay2){ this.maxDay2 = maxDay2; } -- View this message in context: http://www.nabble.com/Date-validation-%28month-and-day%29-tf4376264.html#a12514004 Sent from the Struts - User mailing list

Re: Date validation (month and day)

2007-09-05 Thread Hiroyuki Suzuki
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

Date validation (month and day)

2007-09-04 Thread Hiroyuki Suzuki
this message in context: http://www.nabble.com/Date-validation-%28month-and-day%29-tf4376264.html#a12473964 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Validator - Date validation

2006-12-08 Thread Thomas Thomas
Hi, I see that I can validate a Date with the Validator framework, but don't know how to apply it in my case. my bean has separate variables for day - month - year (it is not one string) I have three fields because he had to choose the date with a select html tag for the day, a select html tag

Re: Validator - Date validation

2006-12-08 Thread Thomas Thomas
I make a custom validator myDate I try to give as var value the day and the month, but when I try to get the values of the vars day and month, I get the String literals birthDay and birthMonth field property=birthDay/field field property=birthMonth/field field

Re: Validator - Date validation

2006-12-08 Thread Thomas Thomas
I get the String literals and not the real numbers

Re: Validator - Date validation

2006-12-08 Thread Thomas Thomas
Ok everything is fixed, I forgot to do : ValidatorUtils.getValueAsString

Date validation

2006-11-22 Thread vacak
. What could be the problem? And what shall i do if i want to accept the both format? (MM/dd/yy and MM/dd/) Thanks -- View this message in context: http://www.nabble.com/Date-validation-tf2684724.html#a7488591 Sent from the Struts - User mailing list archive at Nabble.com

RE: Date validation

2006-11-22 Thread Gundersen, Richard
- From: vacak [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 22, 2006 10:41 AM To: user@struts.apache.org Subject: Date validation Hi, I use Validator 1.0 and I would like to validate date fields with the format MM/dd/yy but it works only with the format: MM/dd/

RE: Date validation

2006-11-22 Thread Strachan, Paul
Luck From: vacak [mailto:[EMAIL PROTECTED] Sent: Wed 22/11/2006 9:40 PM To: user@struts.apache.org Subject: Date validation Hi, I use Validator 1.0 and I would like to validate date fields with the format MM/dd/yy but it works only with the format: MM/dd

Re: Date Validation on the Clients side

2006-06-27 Thread The Jasper
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

AW: Date Validation on the Clients side

2006-06-27 Thread Halgurt Mustafa Ali
Good morning, Ok :-) Many thanks for your help, that was very nice from you, I appreciate it.. Regards, Halgurt -Ursprüngliche Nachricht- Von: The Jasper [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 27. Juni 2006 09:42 An: Struts Users Mailing List Betreff: Re: Date Validation

Date Validation like dd.MM.yyyy HH:mm

2006-06-26 Thread Halgurt Mustafa Ali
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 that the time would not be considerd, although I initialize datePattern in validation.xml with this value dd.MM. HH:mm, the date will be

Date Validation on the Clients side

2006-06-26 Thread Halgurt Mustafa Ali
-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. 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.

Re: Date Validation on the Clients side

2006-06-26 Thread The Jasper
to validate date values like dd.MM. 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

AW: Date Validation on the Clients side

2006-06-26 Thread Halgurt Mustafa Ali
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

Re: Date Validation on the Clients side

2006-06-26 Thread The Jasper
, 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

Re: Date Validation like dd.MM.yyyy HH:mm

2006-06-26 Thread Niall Pemberton
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 that

How to specify more than 1 datePattern in date validation?

2005-08-15 Thread Thai Dang Vu
Hi everybody, If I want to validate a date field, I will put something like this in the validation.xml file field property=myDate depends=date arg0 key=Date field resource=false/ var var-namedatePattern/var-name var-valueMM/dd//var-value /var /field So, if I

Re: How to specify more than 1 datePattern in date validation?

2005-08-15 Thread Laurie Harper
is in the right format but can't easily check that it's really a legal date, or write your own custom validation rule. The date validation doesn't provide for specifying multiple patterns. Actually, one other possibility: if you don't specify a pattern, Validator will use SimpleDateFormat's default short

Re: How to specify more than 1 datePattern in date validation?

2005-08-15 Thread Thai Dang Vu
the match validation with a suitable regular expression, which will allow you to make sure the date string is in the right format but can't easily check that it's really a legal date, or write your own custom validation rule. The date validation doesn't provide for specifying multiple patterns

Re: How to specify more than 1 datePattern in date validation?

2005-08-15 Thread erikweber
if there is an example in the Struts docs or the wiki. Erik -Original Message- From: Thai Dang Vu [EMAIL PROTECTED] Sent: Aug 15, 2005 1:58 PM To: user@struts.apache.org Subject: Re: How to specify more than 1 datePattern in date validation? You're right. RE is not suitable in this case. If we don't

Modify the date validation rule in Struts?

2005-08-01 Thread Thai Dang Vu
Hello everybody, I just tested the date validation in Struts 1.1 and it seems to me that 12/31/2004 is valid but 12-31-2004 is invalid. Do you know what I should change so that 12-31-2004, Dec 31 2004 are valid? And are the date validation rules in version 1.1 and 1.2 the same

How to modify the date validation in Struts?

2005-07-29 Thread Thai Dang Vu
Hello everybody, I just tested the date validation in Struts and it seems to me that 12/31/2004 is valid but 12-31-2004 is invalid. Where should I change so that 12-31-2004, Dec 31 2004 are valid? Sincerely, Thai

date validation

2005-06-06 Thread Riyaz Mansoor
i've got a date validation set up with datePattern -MM-dd, ie standard JDBC SQL format. but date validation seems to pass values of type 1980 (without month or day) and subsequently i get a SQL DATE conversion error. is this expected behavior for date validation? is there a way

Re: date validation

2005-06-06 Thread erikweber
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 user@struts.apache.org Subject: date validation i've got a date validation set up with datePattern

Re: date validation

2005-06-06 Thread Riyaz Mansoor
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 if

validator - date validation

2005-04-29 Thread rmanchu
hi guys in validator, date validation is based on locale. i want to fix it to SQL type dates only; -mm-dd is there a way to do this? or do i write the rule? riyaz. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: XML date validation

2005-01-13 Thread deepak
Thanks Joe. - Original Message - From: Joe Germuska [EMAIL PROTECTED] To: deepak [EMAIL PROTECTED]; Struts Users Mailing List user@struts.apache.org Sent: Wednesday, January 12, 2005 7:41 PM Subject: Re: XML date validation At 5:04 PM +0530 1/12/05, deepak wrote: Hi, Using XML

Re: Re: XML date validation

2005-01-13 Thread sales
Kindly send all your messages to [EMAIL PROTECTED] This mail account is not functioning anymore. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

XML date validation

2005-01-12 Thread deepak
Hi, Using XML date validation, how do I check if the entered date is in the future or not ? Thanks --Deepak

Re: XML date validation

2005-01-12 Thread Erik Weber
Author your own pluggable validator. See the Struts doc on this. I recently posted an example that you can probably use as a place to start (pasted below). Erik deepak wrote: Hi, Using XML date validation, how do I check if the entered date is in the future or not ? Thanks --Deepak

Re: XML date validation

2005-01-12 Thread Joe Germuska
At 5:04 PM +0530 1/12/05, deepak wrote: Hi, Using XML date validation, how do I check if the entered date is in the future or not ? If by XML date validation, you mean the commons-validator framework and ValidatorForm or a class derived from it, there is no built-in support

Re: XML date validation

2005-01-12 Thread deepak
Thanks Erik. - Original Message - From: Erik Weber [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, January 12, 2005 5:08 PM Subject: Re: XML date validation Author your own pluggable validator. See the Struts doc on this. I recently posted

Date validation another question

2005-01-05 Thread Manisha Sathe
Currently testing text box i/p for date. I do not want to make use of datePatternStrict so i used datePattern but still it is validating as per datePatternStrict only. It is not accepting 1/1/2005 as i/p Do i need to set anything else too ?

RE: Date validation another question

2005-01-05 Thread Manisha Sathe
dd.MM. Radek -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 9:23 AM To: user@struts.apache.org Subject: Date validation another question Currently testing text box i/p for date. I do not want to make use

Date validation if a checkbox is checked

2005-01-04 Thread jecrotea
Hi, I want to know, how can I validate a field that must contains a date with the DatePattern ONLY IF a checkbox in my form is checked? For now, I have this, but it doesn't work at all: field property=startDate depends=validWhen, date arg0 key=searchLots.error.invalidStartDate /

Date Validation question

2005-01-04 Thread Manisha Sathe
I am having From date - in the form of 3 separate lists for - Day, Month, Year. Similarly i have To date. Using struts validator framework, 1)Firstly i want to validate whether the combined entries (day, month, year) is a valid date or not 2)Secondly whether first date to date I tried to

Date validation, multiple format

2004-12-03 Thread Mohd Amin
Hi, I have a requirement for the date format to be depending on the user which logs in. Showing the date formatted to the user preference is a no brainer but validation using struts validator I think is slightly tougher, anyone has any idea on how to get this implemented? Thanks Amin

RE: Date validation, multiple format

2004-12-03 Thread David G. Friedman
To: [EMAIL PROTECTED] Subject: Date validation, multiple format Hi, I have a requirement for the date format to be depending on the user which logs in. Showing the date formatted to the user preference is a no brainer but validation using struts validator I think is slightly tougher, anyone has

Re: Problems with Date validation

2004-11-18 Thread Daniel Hopper
Kinjal, In my experience with dates and validation, the problem you have having is quite possibly when you are coping the date values out of the ActionForm if you are trying to convert the string to a date right there in the get method and the value is an empty string no null. Since the

Problems with Date validation

2004-11-01 Thread Kinjal Shares
Dear all, I've been trying to get Dates validation for my Struts project without any success. I'm using struts 1.2.4 with Validator 1.1.3 on tomcat 5.0.27. In my application, I'm having a hier of MappingActionForm for Action, where individual action mappings in struts-config map to individual

Re: [Apology] Problems with Date validation

2004-11-01 Thread Kinjal Sonpal
Dear listers, I'm extremely sorry for the double posts. I think there are some problems with yahoo. I'll switch to some other mail provider. Thanks a lot and warm regards, Kinjal Sonpal --- Kinjal Shares [EMAIL PROTECTED] wrote: Dear all, I've been trying to get Dates validation for my

Date Validation

2004-08-24 Thread bmf5
When I search the archive I get no results for the word date so here goes. I've been using the validation plug-in to validate the date format of MM/dd/. A new requirement is to allow the user to enter a date in one of several formats(mmddyy, mm/dd/, and others). Can the validator do

RE: Date Validation

2004-08-24 Thread Joe Hertz
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 using the validation plug-in to validate the date format of MM/dd/. A new requirement is to allow the user to enter a date in one of several formats

RE: Date Validation

2004-08-24 Thread Jim Barrows
-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 using

Re: Date Validation

2004-08-24 Thread Joe Germuska
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

Re: Date Validation

2004-08-24 Thread bmf5
: [EMAIL PROTECTED] Joe Germuska [EMAIL PROTECTED] wrote on 08/24/2004 12:31:54 PM: 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

Date validation help

2004-07-06 Thread Greg Hoven
We have a need to accept dates entered on a form in either mm/dd/ or mm-dd- formats, depending on how the user keys it in. (Not our choice to support both formats.) We'd like to use the Struts Validator to validate the dates with the validateDate() method. We haven't been able to