aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes accessing session variables when we use sendRedirect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "accessing session variables when we use sendRedirect" Watch "accessing session variables when we use sendRedirect" New topic
Author

accessing session variables when we use sendRedirect

swapna rao
Ranch Hand

Joined: Feb 12, 2008
Posts: 53
Hi,
I have a servlet class XXXX in one web module of serletContext A. This servlet does the required business logic and stores the values in session and redirects the request to the JSP page YYYY. My JSP page is present in different module of same servletContext A. My code is working fine and i'm able to retrieve the session values from JSP page. My understanding from this is,we can share the session between different modules of the same ServletsContext but we cannot share the session between two different servletContext.I would like confirm this.Please correct me,if I'm wrong.


SCJP-88<br />SCWCD-94
Vikas Parikh
Greenhorn

Joined: Aug 29, 2006
Posts: 19
Yes, you are absolutely correct
 
 
subject: accessing session variables when we use sendRedirect