
I am using servlet to set session by following code :- HttpSession session=request.getSession(false); session.setAttribute("user", email);
RequestDispatcher rd=request.getRequestDispatcher("Login_home.jsp"); rd.forward(request,response);
and get session value on jsp page by follwing:-
String user=(String)session.getAttribute("user");
this is work but when this code is use in other jsp page its give null value...

Please visit the following links:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
