• Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to pick up up messages from properties file  RSS feed

Shailesh Vaishampayan
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have struts2 application with Spring. I use Messages.properties which is declared as a constant in struts.xml as follows :

Now location of this file is WEB-INF/classes/properties/application.

We have kept our resources folder outside our application's .war file at a seperate location. we declare this particular location to tomcat in its catalina.propeties file in shared.loader section. So we dont have to set any classpath when we start the applciation. This location has all the .jar files required for aour application.

But if we dont set any classpath with above jars strtus doesn't pick values for labels and messages from the above properties file. But when we set the class path and include all the jar files it properly picks them up. Any Idea as to how it actually works. Because we have all the jars in classpath through tomcat's shared.loadersection why wwe have to set it seperately just for this weired Struts2 .properties behaviour?? Please help.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!