• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Not able to pick up up messages from properties file

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic