session().getAttribute is returning null
问题 I have a servlet which calls a jsp page. In the servlet I am retrieving the username provided at the login correctly. But after setting the same in session, when i access the called jsp page, its returning null. Servlet Code: public class AdminServlet extends HttpServlet { /** * */ private static final long serialVersionUID = -4244742541587179390L; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String userName = request