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
What is ServletConfig object?
Can you use javascript in servlets?
Write the code to get the server information in servlet.
Who is responsible for writing a constructor?
Can we get PrintWriter and ServletOutputStream both in a servlet?
Is servlet a controller?
How is the get () method different from the post() method?
What is the difference between portlet and servlet?
Explain the steps involved in placing a servlet within a package?
How can we create deadlock situation in servlet?
When servlet object is created?
Is that servlet is pure java object or not?
What are the advantages of Servlet over CGI?
Explain the methods of request dispatcher in servlet?
What is pure servlet?