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...

can we override service method in my servlet class..?? if
yes or no why ??

Answer Posted / muzaffar

Yes, we can override service method. But then we have to give our own implementation to detect which type of method request is using.(i.e GET or POST). Since we mostly use HTTP as a protocol itz best to extend HTTPServlet and override doGET or doPOST accordingly.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the servlet filter.

983


How do we translate jsp?

1056


What is SingleThreadModel interface?

1149


What is the purpose of inter-servlet communication?

1098


How can you start a jta transaction from a servlet deployed on jboss?

1166


What is called Session Tracking?

1186


How can the session in servlet can be destroyed?

1184


When servlet is loaded?

1079


What are all the ways for session tracking?

1167


How do you invoke a servelt?

1126


What is servlet in simple terms?

1025


Can you refresh servlet in client and server-side automatically?

1079


What is cookie in servlet?

1060


How can you use a servlet to generate a plain text instead of html?

1132


Why do you use session tracking in httpservlet?

1136