A JSP page is a server-side, text-based J2EETM component. Such a component executes in a container installed on a web server or on a web-enabled application server. The JSP container delivers requests from a client to a JSP page and responses from the JSP page to the client. When compiling a JSP page, the container dynamically translates the JSP source into a JavaTM class that implements the javax.servlet.Servlet interface.
A JSP page looks like a standard HTML or XML page, with additional directive elements, scripting elements, and action elements that the JSP engine processes and strips out. Typically, JSP elements create text that is inserted into the results page.
There are three types of JSP pages:
Standard JSP pages. Standard JSP pages are written using the standard JSP syntax. Standard JSP pages typically use the .jsp extension.
JSP documents. JSP documents are written using the JSP document syntax, which is well formed XML. JSP documents typically have the .jspx extension. Two examples of the advantages that JSP documents have over standard JSP pages are:
JSP segments. A segment is a file that contains a fragment of JSP text for inclusion by standard JSP pages and JSP documents. JSP segments typically use the .jspf extension.
For additional information, see the JavaServer Pages Specification available at
.