2018-03-15 14:18 GMT+01:00 Vikul Aggarwal <aggarwal.vi...@gmail.com>: > Hi > > I am using xwork validation to valid whether the value of an integer falls > in a valid range or not. > > This is how the validator is configured: > > <field-validator type="int"> > <param name="min">0</param> > <param name="max">999999999</param> > <message key="import.validRange"> > </message> > </field-validator> > > int validator is com.opensymphony.xwork2.valida > tor.validators.IntRangeFieldValidator > > The message import.validRange is present in the properties file and is as > follows: > > import.validRange=${fieldName}: You must enter a value in the range ${min} > and ${max}. > > However, when the validation runs the message that is printed is as follows: > > You must enter a value in the range ognl.NoConversionPossible and > ognl.NoConversionPossible.
What's a type of the field? I have pushed an additional code snippet to show how the IntRangeValidator works https://github.com/apache/struts-examples/tree/master/form-xml-validation Regards Ćukasz --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org