Look at the javax.servlet.http.HttpSession object. You can get one by calling HttpServletRequest.getSession(). Then call HttpSession.setAttribute(String, Object) to set a session variable, and HttpSession.getAttribute(String) to retrieve one.
Jon Emerson
http://www.jonemerson.net/