Which version of AppFuse are you using? You should be able to grab
the "messageSource" bean and get messages from it. Either that or use
ResourceBundle.getBundle(Constants.BUNDLE_KEY,
LocaleContextHolder.getLocale());
Matt
On 4/11/07, thinkboy <[EMAIL PROTECTED]> wrote:
sorry for such an ignorance question.
how can i get message source from programming API, not via DI.
i did the following but failed. the log is not able to show "myapp". pls
help.
ApplicationContext ctx =
WebApplicationContextUtils.getRequiredWebApplicationContext(context);
String message = ctx.getMessage("webapp.name", null, null);
log.debug("my web app name:" + message);
------
/web/WEB-INF/ApplicationResource.properties
------
webapp.name=myapp
--
View this message in context:
http://www.nabble.com/how-to-get-message-source-without-dependency-Injection--tf3557431s2369.html#a9933514
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]