| Author |
about protected void doGet() ?
|
hasan khan
Ranch Hand
Joined: Aug 04, 2003
Posts: 222
|
|
i have created an HttpServlet which overrides protected void doGet() since this method is protected how to container calls this method?
|
SCJP, SCWCD
|
 |
Mani Ram
Ranch Hand
Joined: Mar 11, 2002
Posts: 1140
|
|
The container never calls the doXXX methods. Instead the container always calls the public void service(ServletRequest req, ServletResponse res) method in HttpServlet class. This service method inturn calls the protected void service(HttpServletRequest req, HttpServletResponse resp) method. This protected service method, then delegate the calls to doXXX methods as required.
|
Mani
Quaerendo Invenietis
|
 |
 |
|
|
subject: about protected void doGet() ?
|
|
|