This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes j2eecertificate mock exam question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "j2eecertificate mock exam question" Watch "j2eecertificate mock exam question" New topic
Author

j2eecertificate mock exam question

vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155


Answers given r 1,2,4
my doubt is Does HttpSession class has the method getServletContext??
Thx
Srinivasan Rengan
Ranch Hand

Joined: Nov 07, 2004
Posts: 122
Yes offcourse.
HttpSession class has a getServletContext() through which we acquire the reference to ServletContext object.

Srini



SCJP, SCWCD, SCBCD (EJB 2.x and EJB 3), OCA, SCDJWS
Will Lee
Ranch Hand

Joined: Mar 16, 2005
Posts: 58
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.


SCJP 1.4, SCWCD, SCDJWS
vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155
Thanx for ur replies..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: j2eecertificate mock exam question
 
Similar Threads
j2eeCertificate Ques.
Servlet concepts doubts
which is thread safe ?
Order of Loading Servlets, Context Listeners, Tag classes and Filters
Why getting Exception...