Have a servlet
HttpSession httpSession = request.getSession(true); String Login = (String) request.getParameter("login"); httpSession.setAttribute("login", Login); response.sendRedirect("index.jsp");
And there is a jsp page
String username=(String) session.getAttribute("login"); if(username==null) username=""; <p>Добро пожаловать, <%=username%></p>
Does not transfer the login to the session. What is the mistake here?