Published Aug 23, 2022
Contribute to Docs
JSP (Jakarta Server Pages, formerly JavaServer Pages) is a technology that allows a web developer to mix textual content with Java code that is executed on the web server to render the final web page. In this way it is similar to PHP except that it uses the Java programming language. With JSP the developer can create dynamic pages based on HTML, XML, SOAP, or other document types.
JSP was released in 1999 by Sun Microsystems, and version 3.1 was released on April 31, 2022.
Advantages & Disadvantages
JSP has the following advantages compared to other methods of creating dynamic web pages:
- The execution of JSP pages is faster than other technologies.
- JSP pages are compiled before being processed by the server, reducing the load on the server.
- JSP has access to all the Java APIs.
- Since JSP uses the Java Virtual Machine, it is portable and platform-agnostic.
These are some disadvantages of JSP:
- Debugging and tracing errors can be difficult.
- It uses roughly twice the disk storage as other dynamic web pages.
- A JSP file must be compiled on the server when first accessed, which can cause a noticeable delay on the first visit to a page.
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn More on Codecademy
Back-End EngineerBack-end developers deal with the hidden processes that run behind the scenes, building APIs and databases that power the front-end.
Includes 41 Courses
With Professional Certification