Hi all, i want to use externalized messages in the validation errors of a ActionForm subclass.
I have this code: [...] public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); /* * required fields */ if (orgName == null || orgName.equals("")) { errors.add("orgName", new ActionMessage("employer.orgName.requiredfield")); } [...] and works pretty good, but i want to use ActionMessages with a parameter with the name of the required field. For instance: [...] if (orgName == null || orgName.equals("")) { errors.add("orgName", new ActionMessage("employer.requiredfield", "employer.orgName")); } [...] But in jsp view, it generates "employer.orgName is required" I want to get the ResourceBundle to "translate" the employer.orgName to the value assigned in .properties file. How can i do it? thanks -- ;-) ____________________________________ Jorge Martin Cuervo Analista Programador Outsourcing Emarketplace deFacto Powered by Standards email <[EMAIL PROTECTED]> voz +34 985 129 820 voz +34 660 026 384 ____________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]