JavaServer Pages (JSP) technology enables you to create Web pages with both static and dynamic content. JSPs are text-based documents that contain static markup, usually in HTML or XML, as well as Java content in the form of scripts and calls to Java components. JSPs extend the Java Servlet API and have access to all Java APIs and components.
You can use JSPs many different ways in Web-based applications. As part of the J2EE application model, JSPs typically run on a Web server in the middle tier, responding to HTTP requests from clients, and invoking the business methods of Enterprise JavaBeans (EJB) components on a transaction server.