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
Explain the different ways for servlet authentication?
Difference between httpservlet and generic servlets?
How can the session in servlet be destroyed?
What is the capacity the doget can send to the server?
Can we get PrintWriter and ServletOutputStream both in a servlet?
Explain mvc pattern.
Explain request dispatcher and its methods.
Which event is fired at the time of project deployment and undeployment?
What are the steps involved in placing a servlet within a package?
Which are the different ways you can communicate between servlets?
What is the difference between the servlets and cgi programs?
What is the difference in between the httpservlet and generic servlet?
Explain url encoding in servlet?
What do you mean by a filter and how does it work?
What is servlet looping or chaining?