@Override public void init() throws ServletException { log.debug("Servlet initiating."); sqlProperties = (Properties) this.getServletContext().getAttribute("sqlProperties"); dao = new ThoughtDAO(); dao.setSqlProperties(sqlProperties); log.debug("Servlet initiated."); }