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
How the servlet is loaded?
Why servlet is faster than jsp?
What is SingleThreadModel interface?
When should you prefer to use doget() over dopost()?
What is the use of servlet wrapper classes?
How to get the actual path of servlet in server?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
Explain the difference between servletconfig and servletcontext in servlet?
What is servlet attributes and their scope?
What do you mean by request dispatcher in servlet?
How to find whether a parameter exists in the request object?
What are the difference between session and cookies in servlet? Explain
What do you mean by session tracking?
What are the functions of an intercepting filter?
Explain the difference between jsp and servlet?