aspose file tools*
The moose likes Struts and the fly likes Not able to pick up up messages from properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Not able to pick up up messages from properties file" Watch "Not able to pick up up messages from properties file" New topic
Author

Not able to pick up up messages from properties file

Shailesh Vaishampayan
Greenhorn

Joined: Sep 19, 2010
Posts: 2
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to pick up up messages from properties file