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

Name the packages that work with servlet?

1058


What is load-on-startup in servlet?

1197


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

1116


What is java servlet?

1108


What is string tokenizer?

1142


Why is servlet used?

1226


What do you mean by httpservlet and how it is different from the genericservlet?

1121


How to get the IP address of client in servlet?

1134


What is meant by servlet? What are the parameters of the service method?

1094


Is it possible to have a constructor inside the servlet?

1058


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1180


How do you find out what client machine is making a request to your servlet

1105


What is the procedure of invoking different servlet in a different application?

1061


What are the features added in Servlet 2.5?

1317


Explain url encoding in servlet?

1104