javascriptproperties-fileread-write

How to read & write in a properties file with JavaScript


I'm working in a JEE web project. I would like to read and write into a properties file which is located into WebContent/WEB-INF/classes folder.

How can I do this via JavaScript on the client side?


Solution

  • Create an endpoint that the JavaScript code can post to via Ajax, and have servlet code handle the post by updating the properties file.