File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Changing property file values dynamically using struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Changing property file values dynamically using struts" Watch "Changing property file values dynamically using struts" New topic
Author

Changing property file values dynamically using struts

Naresh Talluri
Ranch Hand

Joined: Oct 12, 2007
Posts: 115
Hi All

Am facing small problem in my application, am using struts1.xx in my project , ( Tomcat server).

Problem : Am using some configuration parameters in my application using appl.properties and reading using ResourceBundle class, everything looks fine but
if i want to change any entry in property file i need to restart server to get it reflected,
ex : name_key=java
if i want to change "name_key" value from java to j2ee, i need to restart tomcat server,

could you please let me know how can i achieve this?

I really appriciate if anyone having any suggestion.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing property file values dynamically using struts
 
Similar Threads
Where should we keep the Native SQL queries
Want to change Application Property at startup
Changing property file values dynamically using struts
Difference between JSP and Servlets
Loading .properties file.