in my action I put :
errors.add("erreur",new ActionError("Le CINn Agent doit etre num�rique: Mise � jour
non r�alis�e"));
From the Javadoc:
public ActionError(java.lang.String key)
Deprecated.
Construct an action error with no replacement values.
Parameters:
key - Message key for this error messageSo the String you pass to the ActionError constructor must be the key of a message defined in the resources file of your application.
It is defined in the struts-config.xml:
<message-resources parameter="resources.application"/>
This specify the file WEB-INF/classes/resources/application.properties.
Put a line like the following in it:
err.ex=Le CINn Agent doit etre num�rique: Mise � jour non r�alis�e.
Then use:
errors.add("erreur",new ActionError("err.ex"));before saveErrors().
Notice that ActionError is now deprecated. -- Davide
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
