struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <maurizio.cucchi...@gmail.com>
Subject Re: struts2.1 validation problem! with "fileUploadStack"
Date Fri, 19 Nov 2010 08:28:22 GMT
Did you try something like this
http://struts.apache.org/2.2.1/docs/date-validator.html ?

2010/11/19 Mead Lai <laiqinyi@gmail.com>

> Thank you, Dave.
> Your explain is helpful for me to understand it.
>
> I want to validate the birthday in struts2 validation.xml,
> The range of date is between 1900-01-01 and current Date.
> How to get current date time in the struts2 validation.xml,?
> Thanks!
>
> <field name="birth">
> <field-validator type="date">
> <param name="min">1900-01-01</param>
> <param name="max">${current Date}</param>
> <message>your birthday  shall be ${min}---${max}</message>
> </field-validator>
> </field>
>
> Regards,
> Mead
>
>
> On Thu, Nov 18, 2010 at 8:04 PM, Dave Newton <davelnewton@gmail.com>
> wrote:
>
> > Dave
>



-- 
Maurizio Cucchiara

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message