Hi All,
I have a application which is bundled and gets deployed as a WAR file only.
There is a property file xs.properties which I use to store my login username and password in encrypted format.
I have a passreset
servlet which resets the password by encrypting & checking the old password and username and if both matches then it writes the new password and username in encrypted format to the property file xs.properties.
My trouble is how can I replace the xs.properties file with the new one. I dont know how I will be able to give a relative path which will replace the xs.properties file with the new one.
Now its creating the new xs.properties file at "webapps"(
Tomcat) instead of ABC/WEB-INF/classes folder.
Can somebody let me know what shall be mine approach to make it store the new file @ ABC/WEB-INF/classes folder.
Below code creates the file @ webapps in Tomcat. In webapps folder my war file is deployed.
LAYOUT OF My WAR
Thanks