| 1600 PMP mock questions | 1400 CAPM mock questions | 800 SCJP 6 mock questions | 600 OCAJP 7 mock questions | 590 OCPJP 7 mock questions | 556 SCWCD 5 mock questions | 500 OCEJWCD 6 mock questions | pdfDownload (java,struts, hibernet etc) | JobsJobs and Walkins |
|
Java online test
JSP online test ORACLE online test Hibernate online test Servlet online test Struts online test EJB online test C online test C++ online test Aptitude online test |
Q. Can we override service method in HttpServlet ?
|
|
|
You can override service method in HttpServlet also.
If you override service method in HttpServlet then call will go to service() method instead of doGet() or doPost() method. If the jsp form you mentioned <form name="reg" method="post"> then also call will go to service method of the servlet. Call don't go to doPost() method. you can call doPost() method explicitly from servive() method. If the jsp form you mentioned <form name="reg" method="get"> then also call will go to service method of the servlet. Call don't go to doGet() method. you can call doGet () method explicitly from servive() method. |
Suggested JobsMore Jobs >> |
|
Online Practice TestJava online testJSP online test ORACLE online test Hibernate online test Servlet online test Struts online test EJB online test C online test C++ online test Aptitude online test |