You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ahmed ALAMI <ah...@c-s.fr> on 2009/09/16 11:20:42 UTC

[S2] Parametrized range validator for min and max values.

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