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

2008-05-22 Thread Milan Milanovic
Yes, but that's not true. dateStart is Date! I tried with String, I tried everything and Struts 2 have serious problems with dates! Gabriel Belingueres <[EMAIL PROTECTED]> wrote: java.lang.NoSuchMethodException: setMin(java.lang.String) Meaning that dateStart is a String, and should be a Date.

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

2008-05-22 Thread Gabriel Belingueres
java.lang.NoSuchMethodException: setMin(java.lang.String) Meaning that dateStart is a String, and should be a Date. 2008/5/22, Milan Milanovic <[EMAIL PROTECTED]>: > Hi, > > when I try this I got an exception: > > WARN com.opensymphony.xwork2.util.OgnlUtil:369 - Caught OgnlException while > se

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

2008-05-22 Thread Milan Milanovic
One more thing, as I use String type in my action class for datetimepicker, I tried to validate that field with regex validator, like this: [0-3][0-9].[0-1][0-9].[1-2][0-9][0-9][0-9] Date is wrong But nothing happens if I enter wrong date, it just st

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

2008-05-22 Thread Milan Milanovic
Hi, when I try this I got an exception: WARN com.opensymphony.xwork2.util.OgnlUtil:369 - Caught OgnlException while setting property 'min' on type 'com.opensymphony.xwork2.validator.validators.DateRangeFieldValidator'. java.lang.NoSuchMethodException: setMin(java.lang.String) at o

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 seco