• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session with sendRedirect()

 
naresh babu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

When I redirect the request from a Servlet to a jsp using sendRedirect() method, new request and response objects will be sent to jsp file. In such scenario, does the existing implicit session object will avialble in the jsp or is there any possibility does the container will create a new session object for the jsp.

Thanks,
Naresh
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As long as both pages are part of the same context, they will both use the same session.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic