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
Which application server is best for java?
What is java servlet?
How will you pass values from HTML page to the servlet?
What is difference between GenericServlet and HttpServlet?
What's the use of servletcontext?
Why the container loads server at the application startup and how?
Define context initialization parameters.
Tell us something about servletcontext interface.
Which http method is said to be non-idempotent and idempotent?
What is getservletcontext?
What is the use of servlet context?
Which method of the httpservletrequest object is used?
How is a servlet implemented in code?
What do you mean by httpservlet and how it is different from the genericservlet?
What do you mean by cgi?