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

How do I know if java is running on linux?

1181


How are filters?

1088


What are some advantages of storing session state in cookies?

1085


How to notify an object in session when session is invalidated or timed-out?

1132


What must be implemented by all servlets?

1159


Explain get and post.

1164


How the typical servlet code look like ?

1323


What are the supporting protocol by HttpServlet ?

1260


How to create war file?

1236


What’s the difference between genericservlet and httpservlet?

1196


What is the difference between forward () and sendredirect () functions in servlet? Explain

1079


Explain jsessionid?

1088


Explain servlet life cycle?

1190


What are the phases of servlet life cycle?

1168


What do you mean by cgi in servlet?

1130