• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Properties file loaded during Startup of server is not getting reflected

 
Yogesh Chugh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refer the following link http://struts.apache.org/2.0.14/docs/devmode.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic