JSP stands for Java Server Pages , is a server-side programming technology that enables the creation of dynamic, platform-independent method for building Web-based Applications. JSP have access to the entire family of Java APIs. JSP can be thought of as an extension to Servlet because it provides more functionality than servlet such as Expression Language, JSTL. A JSP page consists of HTML tags and JSP tags. The JSP pages are easier to maintain than Servlet because we can separate designing and development. JSP provides some additional features such as Expression Language, Custom Tags.
1. Extension to Servlet
2. Easy to maintain
3. Fast Development: No need to recompile and redeploy
4. Less code than Servlet
Step 1 : Translation of JSP Page
Step 2 : Compilation of JSP Page
Step 3 : Classloading (the classloader loads class file)
Step 4 : Instantiation (Object of the Generated Servlet is created).
Step 5 : Initialization ( the container invokes jspInit() method).
Step 6 : Request processing ( the container invokes _jspService() method).
Step 7 : Destroy ( the container invokes jspDestroy() method).