_jspService() Method

Why do we use underscore(_) symbol only with jspService() method?

Questions by kirankumarg

Showing Answers 1 - 18 of 18 Answers

underscore _ exist not only for _jspService() but also to the other JSP Life Cycle methods which are

1. _jspInit()
2. _jspService()
3. _jspDestroy()


This type of notation is used so as to difference the Life cycle methods of JSP page and Servlet.

  Was this answer useful?  Yes

trinadhd

  • Jul 7th, 2009
 

Underscore _ exist not only for _jspService () but also to the other JSP Life Cycle methods .
and these are created by the jspc (means jsp compiler). It comes from web server's which supports servlet and JSP technologies..

  Was this answer useful?  Yes

Any methods are not be overriden by end users are typically written starting with '-'.
_jspService method is not also be overriden by end users.

Container invoke this method for each request, passing the request and response object.

  Was this answer useful?  Yes

Servlets Life cycle methods:
init(),
service(),
destroy().

If I can use those methods in any Servlet web application programming it is internally servlet container treated as _jspservice() and this method generating code on Java with normal basic code.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions