7 Replies Latest reply: Aug 2, 2012 5:59 AM by 800839 RSS

    HttpServlet with service()


      I have a servlet which extends HttpServlet , can we override the service() for HttpServlet?
      For example I have the below in my HttpServlet like:-

      class CustomServlet extends HttpServlet {

      void doGet(..)

      void doPost(...)

      void service(..) // generic servlet method


      In such case whether all the 3 methods will get invoked including the service() as these are all container specific.
      Please clarify.