As it is possible to add default resource bundle using LocalizedTextUtil.addDefaultResourceBundle() in struts2. I want to achieve the same thing in struts1.X .. i want to set a particular ResourceBundle as default depending upon some conditions.
is it possible to do like that ? can any one suggest the solution ...
Not that I know of. But in Struts 1 you can have multiple resource bundles so it is possible to do something similar. As for a solution, it depends on what, exactly, you are trying to accomplish
Joined: Jan 20, 2010
Thanks for your reply.. What i need exactly is ,
I have two users user1,user2. And i have 2 properties files user1.properties,user2.properties with same keys and diffrent messages.. If user1 logins i should display messages from user1.properties bundle and if user2 logins do the same from User2.properties bundle.