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
How the typical servlet code look like ?
What is servlet api used for conneting database?
Define the servlet mapping.
What is the difference between the include() and forward() methods?
Explain jsessionid?
Explain the difference between generic servlet and http servlet?
What are the types of protocols supported by httpservlet ?
Why is httpservlet declared abstract?
Differentiate between the get and post method
What is the directory structure of a war file?
What is the importance of init() method in Servlet ?
What are important features of Servlet 3?
How do you load an image in a Servlet?
What are the two important api's in for servlets?
What is a servlet context?