File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: j2eecertificate mock exam question