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
Explain web application directory arrangement?
What is called a session?
What is servlet and how it works?
what do you understand by url rewriting?
Is java servlet still used?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What are the uses of servlet and what is servlet chaining?
Explain the working of service() method of a servlet.
How can we invoke another servlet in a different application?
Can we use the constructor, instead of init(), to initialize servlet?
What is servlet looping or chaining?
What do you mean by web applications?
What are some advantages of storing session state in cookies?
How do you invoke a servelt?
What is a servlet context?