I far i understand Httpsession concepts in Java.
HttpSession ses = req.getSession(true);
setAttribute("String", object);
getAttribute("String");