'Read properties file using javascript
- I have a db.properties file in my local machine with this value.
- aaa = host,port,username,password
- I have a jsp page with button. On click of a button i need to read properties file value(aaa = host,port,username,password) using javascript
Solution 1:[1]
Include the MessageResource.js from here this will solve the problem if you are using a simple javascript.
If you are using any script framework it will contain inbuilt functionality to read .properties files. For Example, SAPUI5 contains oBundle functionality to do this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | shashank |
