JSP is a servlet written in HTML format. Basically JSP can have java code in HTML and servlet can have HTML code in Java. The JSP engine does under go through different phases before disposing it. There are essentially 7 phases.
- Page translation : Page is parsed, and a java file which is a servlet is created.
- Page compilation : Page is compiled into a class file
- Page loading : This class file is loaded.
- Create an instance : Instance of servlet is created
- Initialization : jspInit() method is called
- Servicing : _jspService is called to handle service calls
- Destroy : _jspDestroy is called to destroy it when the servlet is not required.
No comments:
Post a Comment