Hi. I wonder why the getServletContext() method is not in Servlet interface. Additionally, when I looked at the api I realized it is in GenericServlet class and it's actually just a wrapper to the ServletConfig.getServletContext() method. Shouldn't the getServletContext() method be in Servlet interface??? Just trying to understand the design...
p.s.: I understand that ServletContext() is actually a "ApplicationContext", but anyway, maybe the Servlet interface could have had this method. [ May 24, 2005: Message edited by: Leandro Melo ]
SCJP 1.4, SCWCD 1.4
posted 11 years ago
Indeed. I wonder why all GenericServlet methods are not in the Servlet interface. [ May 24, 2005: Message edited by: Nobuhiro Watsuki ]