i write in
a.jsp page
String s1="amrita";
session.setAttribute("ana",s1);
after some statements
i write out.print=(String)session.getAttribute("ana") //it prints the value
in page b. jsp out.print=(String)session.getAttribute("ana") //it prints null