Java

JSP Lifecycle

Aug 10, 2016

 

public void jspInit()
- This method is invoked when JspPage is intialised.
- This method is called once in the life-time of JSP Page.
- To put Jsp in service, jspInit() must get completed successfully.

public void _jspService(HttpServletRequest request, HttpServletResponse response) throwsServletException, IOException
- The _jspService() corresponds to the body of JSP page.

- This method is defined automatically by the Container & this should not be defined by JSP page author.
- This method is called many a times in its life cycle .

public void jspDestroy()
- This method is invoked when Jsp Page is about to be destroyed.

JSP Comments
- Comments can be used in JSP.
- Two different types of comments are allowed in JSP.
 

 

 

Related Posts

language_img
Java

JSP Architecture

Aug 10, 2016

language_img
Java

Serverlets V/S Java

Aug 10, 2016

language_img
Java

WHY JSP?

Aug 10, 2016

Table Of Contents

;