U can Use the ServletContext or HttpSession to store yourvariablesFor Example..HttpSession session;session = req.getSession(true);session.setAttribute("user_name",userName);Hope this info will help U .