The JspPage interface declares only two mehtods - jspInit() and jspDestroy() that must be implemented by all JSP pages regardless of the client-server protocol. However the JSP specification has provided the HttpJspPage interfaec specifically for the JSp pages serving HTTP requests. This interface declares one method _jspService(). The jspInit()- The container calls the jspInit() to initialize te servlet instance.It is called before any other method, and is called only once for a servlet instance. The _jspservice()- The container calls the _jspservice() for each request, passing it the request and the response objects. The jspDestroy()- The container calls this when it decides take the instance out of service. It is the last method called n the servlet instance.
If it's true that we are here to help others, then what exactly are the others here for?
All the HTTP request(HEAD,POST,GET etc....) to the JSP will be forwarded to __jspservice() method. There is no method like doGet() or doPost() as because it is derived from javax.servlet.Servlet interface.
It is container's responsibility to implement _jspService(..) method. JSP author should not override it.