Advanced Java (2160707)

BE | Semester-4   Winter-2018 | 20-11-2018

Q4) (a)

List advantages of JSP over Servlet

Advantages Of JSP Over Servlet

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