Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the parameters of the service method ?

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


Please Help Members By Posting Answers For Below Questions

What is ServletConfig object?

1250


Can you use javascript in servlets?

1128


Write the code to get the server information in servlet.

1112


Who is responsible for writing a constructor?

1311


Can we get PrintWriter and ServletOutputStream both in a servlet?

1191


Is servlet a controller?

1058


How is the get () method different from the post() method?

1038


What is the difference between portlet and servlet?

1040


Explain the steps involved in placing a servlet within a package?

1111


How can we create deadlock situation in servlet?

1495


When servlet object is created?

1227


Is that servlet is pure java object or not?

1174


What are the advantages of Servlet over CGI?

1204


Explain the methods of request dispatcher in servlet?

1101


What is pure servlet?

1257