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]

Reply via email to