Is there any way to statically access fields from resources defined in Struts?

Well, I have a solution.

String bundle = "common" ;
String key = "date" ;
MessageResources.getMessageResources(bundle).getMessage(Locale.EN, key);

This is very straightforward.

So why does Struts prefer to store and access the resources through the ServletContext? Is this faster?


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to