List advantages of JSP over Servlet
Advantages Of JSP Over Servlet
- JSP needs no compilation. There is automatic deployment of a JSP, recompilation is done automatically when changes are made to JSP pages.
- In a JSP page visual content and logic are separated, which is not possible in a servlet.
- i.e. JSP separates business logic from the presentation logic.
- Servlets use println statements for printing an HTML document which is usually very difficult to use. JSP has no such tedious task to maintain.