This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in GenericServlet's log(). Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in GenericServlet Watch "Doubt in GenericServlet New topic
Author

Doubt in GenericServlet's log().

priya rishi
Ranch Hand

Joined: Oct 26, 2008
Posts: 119
Hello,

GenericServlet class implements the log method, declared in the ServletContext interface.
but how is this possible , as the class GenericServlet does not implement ServletContext interface.
any help
Thanks.

SCJP 5 , SCWCD 5
Omer Haderi
Ranch Hand

Joined: Sep 27, 2006
Posts: 42
It implements ServletConfig which has a method getServletContext()

so there it is!
priya rishi
Ranch Hand

Joined: Oct 26, 2008
Posts: 119
Thanks, i am silly!!!
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Doubt in GenericServlet's log().
 
It's not a secret anymore!