What Does JavaServer Pages Mean?
JavaServer Pages (JSP) is a technology used to develop interactive Web pages. JSP was developed by Sun Microsystems and is an improved version of Java servlets.
JSP may be developed in a simplified manner and has a wide range of applications. As with most server-based technologies, JSP separates business logic from the presentation layer.
Techopedia Explains JavaServer Pages
JSPs are normal HTML pages with embedded Java code. To process a JSP file, developers need a JSP engine, which is connected to a Web server. The JSP page is then compiled into a servlet, which is handled by the servlet engine. This phase is known as translation. The servlet engine then loads the servlet class and executes it to create dynamic HTML, which is then sent to the browser.
When the next page is requested, the JSP page is precompiled into the servlet and executed, unless the JSP page is changed.
When used with Java DataBase Connectivity (JDBC), JSP provides a dynamic way to create database-driven websites.
The advantages of JSP are:
- Portability: JSP can be deployed across many platforms. All these components can be run across Web servers.
- Configured for reusability: JSP components can be reused across servlets, JavaBeans and Enterprise JavaBeans (EJB).
- Simplification: JSP is simple in the processes of development and maintenance.