Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts1.X

 
annapoorna ch
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !!!

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 ...


Thanks in Advance

 
Richard Golebiowski
Ranch Hand
Posts: 213
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
annapoorna ch
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Richard!

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.

Any solution ?
 
Richard Golebiowski
Ranch Hand
Posts: 213
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you could adapt something like this example.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic