I have a
JSp where I want to add an object to the session and then forward it to a
java class. With
servlets we have this kind of code
HttpSession session=request.getSession()
session.setAttribute("user",user);
RequestDispatcher dispatcher=getServletContext().getRequestDispatcher("/url");
dispatcher.forward(request,response);
How do I do this in JSP. ?