Features of JSP
Features of JSP
JSP are tag based approach to develop dynamic web application. JSP have all the features of Servlet because it is internally Servlet. It have following feature these are;
- Extension to Servlet
- Powerful
- Portable
- Flexible
- Easy
- Extension to Servlet
- Easy to Read data from user
- No Need to Recompile Code after modification
- No need to Redeploy code
- Easy to Maintain
- Tracking User
- Less code than Servlet
Extension to Servlet: JSP is Extension to Servlet, it have all the features of servlet and it have also implicit objects, predefined tags, expression language and Custom tags in JSP, that makes JSP easy to develop any application.
Powerful: These are internally Servlet, means consists byte code, so that all java features are applicable in case of jsp like robust, dynamic, secure, platform independent.
Portable: JSP tags will process and execute by the server side web container, So that these are browser independent and j2ee server independent.
Flexible: Allows to defined custom tags, the developer can fill conferrable to use any kind, framework based markup tags in JSP.
Easy: JSP is easy to learn, easy to understand and easy to develop. JSPs are more convenient to write than Servlets because they allow you to embed Java code directly into your HTML pages, in case of servlets you embed HTML inside of Java code.
Less code than Servlet: In JSP, we can use a lot of tags such as action tags, jstl, custom tags etc. that reduces the code.