1
  • 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
Mohammad Ashfaq
  • 1,333
  • 2
  • 14
  • 38
Rachel
  • 1,131
  • 11
  • 26
  • 43

1 Answers1

-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.

shashank
  • 1
  • 3