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
0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.