views:

33

answers:

2

Is it possible to modify a .properties file in Tomcat, that is to add properties to it, instead of just reading them?

A: 

Yes, please provide further information regarding what you want to achieve.

thelost
+1  A: 

You can use Properties#load() to load them into a modifiable map-like structure. After modifying using Properties#setProperty() you can just use Properties#store() to save it back.


See also:

BalusC