I am using the struts validator and it works almost exactly the way I want.
Say I have a field tf and the value is "ABC"
I want to do a validation requiring it to be an integer and return the
following error message: "tf must be an integer".
I can do all this pretty easily here is the code that does it:
in ApplicationResources.properties :
validation.error.acty.integer={0} must be an integer and "{1}" is not.
in validations.xml
<field property="acty" depends="integer">
<msg name="integer" key="validation.error.acty.integer"/>
<arg0 key="ACTY" resource="false"/>
<arg1 key="${??????}" resource="false"/>
</field>
my question is what do I put in ?????? to get hte actual value the user
entered to be echoed back out
so if I type in AAA into the acty field I want the error message to be:
ACTY must be an integer and "AAA" is not.
Thanks Troy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]