Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Difference between pageContext.getSession and request.getSession

843836Nov 2 2004 — edited Nov 2 2004


Hello 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 = pageContext.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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 30 2004
Added on Nov 2 2004
3 comments
477 views