aspose file tools*
The moose likes Struts and the fly likes Properties file loaded during Startup of server is not getting reflected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Properties file loaded during Startup of server is not getting reflected" Watch "Properties file loaded during Startup of server is not getting reflected" New topic
Author

Properties file loaded during Startup of server is not getting reflected

Yogesh Chugh
Greenhorn

Joined: Aug 26, 2003
Posts: 2
Hi,

I am using Struts 2 and have started facing one issue. In application, I am using one properties file which get loaded in memory at the time of server start up. Structure of file is like key->value as below.

my.first.name=XYZ
my.last.name=ABC

In my code, I am using 'my.first.name' and it displays 'XYZ' on web page. But now, sometimes web page starts showing key instead of value (for example 'my.first.name' instead of XYZ) on web pages for all defined values in properties files and once I restart the server, it works fine.

Any idea?
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Refer the following link http://struts.apache.org/2.0.14/docs/devmode.html


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Properties file loaded during Startup of server is not getting reflected