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]