Answer Posted / shakir khan
service() method called servlet to handle client request in
a new thread.service() method accepts ServletRequest and
ServletResponse objects as parameters.ServletRequest object
contains client requests.It contains data sent in
name/value pairs.
ServletResponse object is used to send the respose to the
client.
public void service(ServletRequest req,ServletResponse res)
throws ServletException,IOException
{
}
| Is This Answer Correct ? | 10 Yes | 10 No |
Post New Answer View All Answers
List out the difference between ServletConfig and ServletContext?
What is the difference between context parameter and context attribute?
What is the process for chaining servlet?
What is api in servlet?
What are all the protocols supported by httpservlet?
What are the life cycle methods of a servlet?
What is life cycle of Servlet?
What is context in servlet?
why we should override only no-agrs init() method.
What is difference between GenericServlet and HttpServlet?
Who is responsible for writing a constructor?
How to find whether a parameter exists in the request object?
Should I override the service() method?
Explain jsessionid?
Which http method is said to be non-idempotent and idempotent?