Well, I've already tried to change the key of my message ressources but it seems that it doesn't change anything.
Because I add errors from a validator plugin class, which is coded in java inside my application, I cannot specify the key of my message ressource, like if I was in the jsp page using the bean:write tag. Is there any way to explicitly specify which ressource key to use when we add error messages from a java class used by the validator framework ? ____________________________ Luc Boudreau SID - Université du Québec [EMAIL PROTECTED] -----Message d'origine----- De : Martin Gainty [mailto:[EMAIL PROTECTED] Envoyé : 4 octobre 2005 10:54 À : Struts Users Mailing List Objet : Re: Question about validator and multiple message ressources Bonjour Luc- the key characteristic (for message-resources) must be a unique identifier. Right now they are the same (org.apache.struts.action.MESSAGE) Bon Chance/HTH, Martin- ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <user@struts.apache.org> Sent: Tuesday, October 04, 2005 10:06 AM Subject: Question about validator and multiple message ressources Hi there, I need to add multiple message ressources to an application and to access them from a custom validation class created with the validator framework. I've added the following in struts-config.xml : -------------------------------------------------------------------------- <message-resources key="org.apache.struts.action.MESSAGE" parameter="ca.uquebec.sid.trousse.mvc.parameters.MessageResources" null="false" /> <message-resources key="org.apache.struts.action.MESSAGE" parameter="ca.uquebec.sid.utils.ValidationProgramme" null="false" /> -------------------------------------------------------------------------- .. and my message is added with the following code : -------------------------------------------------------------------------- errors.add(field.getKey(), new ActionMessage("Message.key")); -------------------------------------------------------------------------- .. but my application can only find the messages located in the second ressource. How can I use both message ressources with the validator framework and custom validation classes ?? ____________________________ Luc Boudreau SID - Université du Québec [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]