posted 20 years ago
1.) GenericServlet
3.) ServletContext
3--is correct.
ServletContext interface is implemented by the container,this means that there is a class(container class)which implements all the methods defined in the ServletContext interface.
including 'log' methods.
1-- is also correct, GS class only implements the log methods of SC not the interface.
To clear it a bit further,just think how we are able to use other methods defined in ServletContext interface (i.e getRealPath,getContext,getResource)
answer is the container implements SC(container class).
'no worries'
Amer
[ May 26, 2003: Message edited by: Amer Khan ]
<i>Dare to dream - everything that exists today,was once a figment of someone's imagination, nobody says tomorrow can't be a figment of your today.</i>