Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in GenericServlet's log().  RSS feed

 
priya rishi
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Omer Haderi
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It implements ServletConfig which has a method getServletContext()

so there it is!
 
priya rishi
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, i am silly!!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!