try this session.getAttribute(Globals.LOCALE_KEY);
--- Denis Laroche <[EMAIL PROTECTED]> a écrit : > Hello everybody, > > I hope it's not a trivial question. > > I'm trying to access the current Locale from a JSP > page. The key to > access the Locale is stored in variable > org.apache.struts.Globals.LOCALE_KEY. So what I did > is to look up the > value of the variable in the source file > org.apache.struts.Globals.java > and used that value in a JSP page like this: > > ${sessionScope['org.apache.struts.action.LOCALE']} > > It works but I'm wondering if there's a more direct > way, maybe using one > of the tags provided by the Struts framework, to > access beans stored > under keys defined in Globals.java. > > Thanks in advance for any help. > > -- > Denis Laroche > Pratt & Whitney Canada, Test Facilities > phone 450-677-9411 ext. 5224 > pager 514-853-9863 > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]