Yes, you can call the getResources() method inside your action which will
return a MessageResources object that you can read the localised messages
from. Check the javadoc for details on the parameters.
-Original Message-
From: Carl-Eric Menzel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 16
MessageResources resources = getResources(request);
java.util.Locale locale = getLocale(request);
String yourString = resources.getMessage(locale, yourString);
--
Andrew Kuzmin
http://www.java201.com
- Original Message -
From: Carl-Eric Menzel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
and what about from an ExceptionHandler?
From: Andrew Kuzmin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED],
Carl-Eric Menzel [EMAIL PROTECTED]
Subject: Re: Getting Messages in an Action?
Date: Tue, 16 Sep 2003 18:29:39
]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 6:47 PM
Subject: Re: Getting Messages in an Action?
and what about from an ExceptionHandler?
From: Andrew Kuzmin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED],
Carl
something.
Adolfo.
From: Andrew Kuzmin [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Getting Messages in an Action?
Date: Tue, 16 Sep 2003 19:12:38 +0300
org.apache.struts.action.ExceptionHandler:
snip
public
5 matches
Mail list logo