I\'ve got a regular java file that I use to update and query a mysql database but I need to take configurable options in that file (like host name, password, etc) and put it
You could use context-parameters in your web.xml and a javax.servlet.ServletContextListener to populate some static fields.
In you normal java class you read this this static fields.
... Prameter myParam 123456790 ...
You can access this context parameter with ServletContext.getInitParameter
ServletContext.getInitParameter