we cant Override Jsp Service method?Why?
Answer Posted / baji
The content what we are written in the JSP will go into
_jspService()method because we are implicitly implemented
it.if we again try to override explicitly, the JSP compiler
given error as " THE METHOD IS ALREADY IMPLEMENTED AND CAN'T
OVERRIDE" but in case of other two methods we are not
implementing it in the jsp.therefore the jsp compiler will
allow we can override jspInit() and jspDestroy().
Any method which are not to be overridden by the end
user are typically written starting with an '_'.
| Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
What are the ways to handle multi-threading in servlets?
Explain get and post.
What is the servletconfig object?
What is the use of httpservletrequestwrapper?
What’s the difference between genericservlet and httpservlet?
What is getservletcontext?
Explain the servlet filter.
How is an application exception handling is done using a servlet?
How can we refresh automatically when new data has entered the database?
What are the different types of servlets?
What are the uses of servlets?
What is the purpose of dispatcherservlet properties?
How many objects of a servlet is created?
Explain request dispatcher and its methods.
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?