can we override service method in my servlet class..?? if
yes or no why ??
Answer Posted / ruchi
we can override service method in my servlet class if the
request is not protocol dependent.
Bcoz we exdend HttpSrevlet class to handle Http GET and
POST requests and we have to override some methods like
doGet,doPost,doHead,doPut,doDelete.
But if u want to override service method then u have to
extend genricServlet Class.Then only u can implement Service
() method.
| Is This Answer Correct ? | 52 Yes | 8 No |
Post New Answer View All Answers
What is the advantage of Servlets when compared with other server side technologies?
What is the type of method for sending request from http server?
How forward () method is different from send redirect () method?
Difference between forward() method and sendredirect() method ?
What is servlet and its life cycle?
Which are the different ways you can communicate between servlets?
Explain the methods of request dispatcher in servlet?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
What is the difference between context parameter and context attribute?
How to generate the server side programming and the advantages of it over the other languages?
List some life cycle methods of a servlet.
Explain url encoding in servlet?
What is a web container and what is its responsibility?
How are filters?
What’s the use of the servlet wrapper classes??