struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmed ALAMI" <ahmed.al...@c-s.fr>
Subject [S2] Parametrized range validator for min and max values.
Date Wed, 16 Sep 2009 09:20:42 GMT
Hi everybody,

Is there a way to configure a struts2 validator like this :
(The min and max have a parametrized value from the value stack)

<field-validator type="date">
    <param name="min">01/01/${date}</param>
    <param name="max">31/12/${date}</param>
    <message>Set date between ${min} et ${max}</message>
</field-validator>

Thanks in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message