• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

j2eecertificate mock exam question

 
vijaya bacina
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Answers given r 1,2,4
my doubt is Does HttpSession class has the method getServletContext??
Thx
 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes offcourse.
HttpSession class has a getServletContext() through which we acquire the reference to ServletContext object.

Srini

 
Will Lee
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
take a look at session API, you will see this method.
What's more, I believe if session obj. can't get servletContext, there's no way for Http***Listener to know anything about the context.
 
vijaya bacina
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx for ur replies..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic