It's not a secret anymore!
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes getServletContext() method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "getServletContext() method?" Watch "getServletContext() method?" New topic

getServletContext() method?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9999

Why there is a getServletContext() method in the ServletConfig interface?

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
If there wasn't, how would you get at the context information during the Servlet.init call?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: getServletContext() method?
It's not a secret anymore!