Why b'coz for non http request logic is provided in service(ServletRequest,ServletResponse) method. Keep in mind that u have to override this method. In this method the container checks if it is http or non-http.If it is http it is forwarded to service HttpServletRequest,HttpServletResponse) method. [ March 05, 2006: Message edited by: Mahendar Reddy ]
SCJP- 98%<br />SCWCD-92%
Joined: Mar 04, 2006
Thanx for reply
But Deshmukh's Book says If you override the service method in your servlet class, you will loose the functionality provided by the HttpServlet class and the doXXX() methods will not be called automatically.In your implementation, you will have to determine the HTTP method used in request and then you will have to call the appropriate doXXX() method yourself.