How can I get the JSP session object inside the servlet.
In my JSP page I am set up a session i.e.
then I call the servlet from JSP i.e.
now I want to get the session object inside the servlet service method and that's what I am doing
but it keeps on giving me null. How can I get the values set in the session object in JSP page accessible in the servlet.
Thanks
In my JSP page I am set up a session i.e.
Code:
session.setAttribute("Names",vector); //where vector contains the data
then I call the servlet from JSP i.e.
Code:
<img src="test.dep.evg.MyServlet">
Code:
Vector v = (Vector)session.getAttribute("Names");
Thanks