How to read from and write to .properties file from a jsp
I'm a novice to java.
Initially we used to make changes in the properties file manually and restart the tomcat services for changes to take place.
Now, we need to read from and write to values from .properties file through GUI and avoid restart.
I have created a new jsp that displays the fields that are some of the key values of the properties file.(eg. SMTP_Servers_And_Ports).
I have an editable text box after every label in the screen.
My requirement is :
1) The default values( from .properties) for these fields should populate automatically when I open the screen.
2) They should be editable which means if I change the values, they should reflect in the .properties file.
3) These changes should be seen in the properties file without restarting tomcat.
Can someone please help me ?
I would be grateful to you.
Thanks a lot in advance !!