This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

j2eecertificate mock exam question  RSS feed

 
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
Boost this thread!