I'm working in a JEE web project and i have a problem, i would like to read and write into a properties file which is located into WebContent/WEB-INF/classes folder and i need to do this with javascript, do you have an idea how to do that ?
Asked
Active
Viewed 166 times
-3
-
With JavaScript on the server, or on the client? – T.J. Crowder Jul 20 '18 at 12:53
-
1Welcome to Stackoverflow. please read https://stackoverflow.com/help/how-to-ask before asking question. – Kiran Joshi Jul 20 '18 at 12:53
-
1I'm sorry,, i mean using javascript on the client side. – ElPolloLoco Jul 20 '18 at 12:55
1 Answers
0
Assuming you mean JavaScript on the client: Create an endpoint that the JavaScript code can post to via ajax, and have servlet code handle the post by updating the properties file.

T.J. Crowder
- 1,031,962
- 187
- 1,923
- 1,875
-
Thank you T.J. Crowder, i think it's the easiest way to resolve my problem. – ElPolloLoco Jul 20 '18 at 12:56