struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmed ALAMI" <>
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>

Thanks in advance.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message