2. Key Features of Jsp
Easy to code
Tracking the User
Easier to connect
Server
Extension to Servlet
Flexible
Portable
Less code than Servlet
3. Q3. What are the advantages of JSP over Pure Servlets?
JSP has many advantages over JSP. They are,
JSP doesn’t require extensive knowledge of JAVA as it is tag-based.
Whereas, servlet requires extensive knowledge of JAVA.
The implicit objects can be used in JSP without any additional code. In
the servlet, additional code is required to use the implicit objects.
JSP is easy to learn and apply than servlet.
JSP has built-in and customized user tags. Servlet is not a tag-based
language.
4. Parsing the JSP
Converting JSP into the servlet
Compiling the Servlet
Q4. Explain lifecycle of a JSP.
JSP lifecycle is defined as follows,
JSP Compilation – If JSP is modified recently, then the JSP engine
compiles the JSP page. In the compilation process, the JSP does the
following-