HttpSession session = request.getSession(false);
Boolean tmpb = new Boolean((String)session.getAttribute("debugmode"));
BufferedWriter log = (BufferedWriter)getServletContext().getAttribute("log")
Hi, you might have found the solution, but dont you have to set the session to "true" when you "getSession".
-G