Yeah, you won't be able to get the user's locale in the StartupListener because it pertains to all users. That's why doing it in your JSP (using <fmt:message> and your web framework's tags) might work best.
Matt On 12/18/06, Ding, Qin <[EMAIL PROTECTED]> wrote:
Matt: If I want to do it in StartupListener, how can I get access to the localized resource bundle file from there? Thanks. Qin -----Original Message----- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 3:22 PM To: [email protected] Subject: Re: [appfuse-user] Use Resourcebundle in StartupListener I would do it in the StartupListener - or just do it directly in your JSPs if the data doesn't change very often. Matt On 12/18/06, Ding, Qin <[EMAIL PROTECTED]> wrote: > > > > > My dropdown list requires localized contents. I can either look up the > ResourceBundle at the lookupManagerImpl or at the Startuplistener. Please > advise how I can get the access to the resource bundle from either place. > Thank you very much. > > > > Qin -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- 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]
