struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralf Schneider <>
Subject MessageResources Problem in Action
Date Tue, 01 Jun 2004 10:23:23 GMT

I want to access the strings in a resource bundle from within an action. I 
have two resource files ( and and they are accessed correctly from the 
JSP, but not from the action.

When I look at the locale with request.getLocale() in the action I see that it 
is set to de_AT. This is what I expected. Unfortunately, the strings are 
fetched from, not from as they should be.

I use this code to get a string from the resource bundle:

	MessageResources messages = getResources (request);
	String msg = messages.getMessage("");

Any ideas what might be the problem?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message