Difference between servletContext.getSession and request.getSession
843836Nov 2 2004 — edited Aug 22 2005Hello All,
In my application i am using JSP's as well as servlets. The servlet which the jsp pages creates is using the servletContext object for creating the session.
i.e
HttpSession session = servletContext.getSession();
But in the servlets which i created i used the following
HttpSession session = request.getSession();
Is there going to be any problems in the application due to this.
Please let me know.