JSP is widely used technology to create dynamic web pages of applications based on Java language. It lets the developer develop pages in easy and fast way by providing server side scripting support for developing any database driven dynamic web site which is fully portable and secure.
Although JSP can be used to create any simple or complex java based application but it is primarily used to develop presentation part of an application. Formerly, when the servlet is used to create web pages, it was difficult to embed html in java code. So to overcome this situation SUN developed JSP which fits in this situation. The strong part of JSP is to embed easily jsp tags with html tags so it is simple to understand and develop pages for any beginner programmer. JSP is converted into Servlet by JSP compiler.
JSP 2.0: It is an ungradation of JSP 1.2. It includes several new features like Simple Expression Language (EL), JSP Fragments, Simple Tag Handlers, Easy tags creation with .tag files, Easy Header and Footer template using the prelude and coda includes etc.
JSP 2.1: It includes new expression language (EL ) syntax, supports resource injection through annotations, support of Java 5.0 enumerations in EL etc.
JSP Exception Handling