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 a web application and what is it’s directory structure?
Explain how does JSP handle run-time exceptions?
Can you send an authentication error from a servlet?
Who is responsible to create the object of servlet?
Why do we have servlet wrapper classes?
What is the servletconfig object?
How the JSP file will be executed on the Server side?
what is multiple server?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
How we can get ip address of client in servlet?
Is it good idea to create servlet constructor?
What if you need to span your transaction across multiple servlet invocations?
What’s the difference between genericservlet and httpservlet?
Explain web container.
What is cookies in servlet with example?