hi, ive a
struts validation file where i've lots of inputs on my form (types are double). I've got validation on each of these fields but the validation mask is the exact same, i.e. it's:
^[0-9]{1,3}(,?[0-9]{3})*\.?([0-9]{1,2})?$
the file validation for one of the fields is below:
<field property="salary" depends="minlength">
<arg0 key="daily.mappingCheck.record.field41"/>
<arg1 key="${var:minlength}" name="minlength" resource="false"/>
<var><var-name>minlength</var-name><var-value>0</var-value></var>
<var><var-name>mask</var-name>
<var-value>^[0-9]{1,3}(,?[0-9]{3})*\.?([0-9]{1,2})?$</var-value>
</var>
</field>
Is there a handy way in struts i can define this globally instead of having to repeat this
string in numerous places?
thanks, Ronan