title: What is the proper way of handling configurations (database login and passwords, etc.) in a dynamic web project?
body: <p>I just got my hands on doing dynamic web programming using JSP. What is the proper way to handle the configurations?</p>
  
  <p>For example, database name, host, login, and password, and indexing directory in the server, etc. My concern is mostly about the security of the passwords. Currently I hard code the data into the .java files, I don't think this is the right way to do so I would like to learn from your experiences.</p>