• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet session question  RSS feed

 
Nair Anoop
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am passing control from my servlet to another class. I am also passing the HttpRequest object to this class as a parameter. How could I make the session also to be visible in this class ?
Thanks in advance,
Anoop
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get the HttpSession for the HttpRequest object
request.getSession();
check out the API http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html
 
Nair Anoop
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks very much for the respose. I have go it to work now.
-Anoop
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!