Validation _without_ looking up keys in resource bundles

2006-10-11 Thread Stuart Robertson
I see that Commons Validator now supports this as an option. For applications (and whole companies) which aren't concerned about i18n it would be very nice to have less moving pieces and place the name of the field directly into validation.xml rather than referencing a key into a resource

Re: Validation _without_ looking up keys in resource bundles

2006-10-11 Thread Stuart Robertson
Ah ha. Found it. Looks like the dev guys accounted for this. You can see how in org.apache.struts.validator.Resources. public static ActionMessage getActionMessage(Validator validator, HttpServletRequest request, ValidatorAction va, Field field) { Msg msg =