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


Please Help Members By Posting Answers For Below Questions

What do you mean by chaining in servlet?

576


What is the dispatcher servlet?

516


What do you mean by web applications? Explain web application directory arrangement?

540


What are the mechanisms used by a servlet container for maintaining session information?

568


What is the difference between genericservlet and httpservlet

589






List some life cycle methods of a servlet.

592


How to generate the server side programming and the advantages of it over the other languages?

563


What is the use of httpservletresponsewrapper?

534


Can you send an authentication error from a servlet?

525


What is the disadvantage of cookies?

580


What is Request Dispatcher?

805


Explain how does JSP handle run-time exceptions?

583


Explain jsessionid and when is it created?

597


What is the difference between context parameter and context attribute?

533


How can we upload the file to the server using servlet?

545