This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes Setting setBundle in sesssion scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Setting setBundle in sesssion scope" Watch "Setting setBundle in sesssion scope" New topic
Author

Setting setBundle in sesssion scope

Mohammed Yousuff
Ranch Hand

Joined: Oct 17, 2007
Posts: 198
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?

My Thoughts : http://passion4java.blogspot.com
Try not to become a man of success but rather to become a man of value.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Setting setBundle in sesssion scope
 
It's not a secret anymore!