Re: MessageResources Problem in Action

2004-06-01 Thread Ralf Schneider
Am Dienstag, 1. Juni 2004 15:15 schrieb None None: > I use the following code: > > myActionForm.setMessage(getResources(request).getMessage(getLocale(request) >, "messages.deleteFailed")); Great! This works fine! The only thing that I missed was to get the locale from the request. Thanks, Ralf.

RE: MessageResources Problem in Action

2004-06-01 Thread None None
experience. From: Ralf Schneider <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: MessageResources Problem in Action Date: Tue, 1 Jun 2004 12:23:23 +0200 Hi, I want to access the strin

MessageResources Problem in Action

2004-06-01 Thread Ralf Schneider
Hi, I want to access the strings in a resource bundle from within an action. I have two resource files (ApplicationResources.properties and ApplicationResources_de.properties) and they are accessed correctly from the JSP, but not from the action. When I look at the locale with request.getLocal