Answer Posted / chadnra kunchala
well, there are two service methods we have.
one is, public service()
second is protected service()
when ever a browser sends a request to server, first it
invokes public service(ServeletRequest req, ServletResponse
res) throws ServletException, IOException
{ }
after calling public service method it invokes the protected
service() method like the following
public service(ServletRequest req, ServletResponse res)
throws ServletException, IOException
{
HttpServletRequest hreq = (HttpServletRequest)req;
HttpServletResponse hres = (HttpServletresponse)res;
protected service(hreq, hres);
}
then,
The protected service() method will idendtify the
requested method whether it is GET OR POST OR PUT like that
, then it invokes the correspondin method like doGet()or
doPost() or doPut() like that..
recommended to override doGet() or doPost() or and..... so
on, not service method()..
| Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com
What are the different methods involved in the process of session management in servlets?
Why session tracking is needed?
Tell us something about servletconfig interface.
Explain in brief the directory structure of a web application?
Whether thread can be used in servlets?
How do you communicate in between Applets and Servlets?
Explain the concept of ssi ?
How we can get ip address of client in servlet?
How can we refresh automatically when new data has entered the database?
What are the important functions of filters?
What are the objects involved when a servlet receives a call from client?
Explain request dispatcher and its methods.
What is ServletConfig object?
What are the steps involved in placing a servlet within a package?