This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Spark in Action and have Jean-Georges Perrin on-line!
See this thread for details.
Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Setting setBundle in sesssion scope

 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently in my project I am using only one resource bundle (using fmt tag) and loading different localized bundle based on the browser locale.
However now we want to load different resource bundles based on the user property. So I thought of adding setBundle tag in session level so that it will be user level.

I have added this code in my template.jsp page



And in the include page I have used the below code



But when I it was throwing an error ….

Is there any way to set the default bundle name DYNAMICALLY for user level using setBundle Tag???, Without adding any extra param to the message tag?
    Bookmark Topic Watch Topic
  • New Topic