struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Ince" <>
Subject retrieve i18n application messages.
Date Wed, 24 Mar 2010 09:01:44 GMT
Does anyone know how to programmatically retrieve the i18n messages outside 
the context of an action class.
I know with the action you can call getText.
I need similiar functionality. I have access to the http request headers. I 
assume I need the accept language request header.

String acceptLanguageHdr = "english";
String msg = "my.value";
// api call to get the correct i18n message similiar to getText.

Any help would be appreciated.


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

View raw message