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 do you mean by chaining in servlet?
What is the dispatcher servlet?
What do you mean by web applications? Explain web application directory arrangement?
What are the mechanisms used by a servlet container for maintaining session information?
What is the difference between genericservlet and httpservlet
List some life cycle methods of a servlet.
How to generate the server side programming and the advantages of it over the other languages?
What is the use of httpservletresponsewrapper?
Can you send an authentication error from a servlet?
What is the disadvantage of cookies?
What is Request Dispatcher?
Explain how does JSP handle run-time exceptions?
Explain jsessionid and when is it created?
What is the difference between context parameter and context attribute?
How can we upload the file to the server using servlet?