If i understood well what u need is the PersistentLocale. That's the one that takes the local from the url
U can see more details here: http://tapestry.apache.org/tapestry5/guide/localization.html On Fri, Jul 31, 2009 at 5:36 AM, Angelo Chen<angelochen...@yahoo.com.hk> wrote: > > Hi, > > I'd like to determine locale of a page, using the following code, it > always > returns 'en' even I have use different URLS like: > > http://localhost:8080/en > http://localhost:8080/zh > > any ideas? > > Angelo > > > @Inject > private RequestGlobals requestGlobals; > public String getSample() { > > System.out.println(requestGlobals.getRequest().getLocale().getLanguage()); > return null; > } > -- > View this message in context: > http://www.nabble.com/t5%3A-determine-page%27s-locale--tp24750561p24750561.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org