posted 22 years ago
The container generated servlet class implements interface 'HttpJspPage' which extends 'JspPage' which in turn extends 'Servlet' interface.
Servlet
1. init(config)
2. public service(req, res)
3. destroy() and others
JspPage extends Servlet and adds
1. jspInit()
2. jspDestroy()
HttpJspPage extends JspPage and adds
1. _jspService(req,res)
So essentially the generated servlet implements all the above listed methods. Some containers have a superclass which has all the above methods implementations done already. The only one method which is generated at the time our jsp's servlet is compiled is, the _jspService(req,res) which is added on the fly during compilation.
As far as the container is concerned, it calls the public Service(req,res) method only. This public service(req,res) method in turn calls _jspService(req,res) in generated servlet.
Regards,
Maha Anna