JSP is a technology that is built on top of servlets technology. the key advantages of jsp technology are

  1. It is easy to separate business logic from presentation logic.
  2. Developing JSP applications is easier than manually developing servlets.
  3. By using EL expressions,Custom tag libraries in jsp’s we can completely eliminate the JAVA code.

As part of the every web container a tool called JSP compiler will be provided.This tool is responsible for reading the JSP and generating JAVA code in a java file.The jspc uses the java compiler to generate the class file(Servlet class) from the java file.