Thanks,
well my app doesn't know Globals.MESSAGES_KEY.
So I did directly :
MessageResources resources=getResources(request);
String res = resources.getMessage("errors.doublon");
----- Original Message -----
From: "Otto, Frank" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, January 16, 2004 12:45 PM
Subject: AW: Access Applicationresources.properties from Action
Hi Eric,
use:
MessageResources resources =
(MessageResources)request.getAttribute(Globals.MESSAGES_KEY);
String msg = resources.getMessage(locale, "key");
Regards,
Frank
-----Urspr�ngliche Nachricht-----
Von: Eric C [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 16. Januar 2004 12:42
An: Struts Users Mailing List
Betreff: Access Applicationresources.properties from Action
Hi all,
i'd like to access my properties file from the Action. My purpose is deliver
an error message to my result page. Any sample code showing the use of the
MessageResources object ?
Regards,
ERic
---------------------------------------------------------------------
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]