JavaServer Pages

(redirected from .jsp)

JavaServer Pages

(programming, World-Wide Web)
(JSP) A freely available specification for extending the Java Servlet API to generate dynamic web pages on a web server. The JSP specification was written by industry leaders as part of the Java development program.

JSP assists developers in creating HTML or XML pages that combine static (fixed) page templates with dynamic content. Separating the user interface from content generation allows page designers to change the page layout without having to rewrite program code. JSP was designed to be simpler than pure servlets or CGI scripting.

JSP uses XML-like tags and scripts written in Java to generate the page content. HTML or XML formatting tags are passed back to the client. Application logic can live on the server, e.g. in JavaBeans.

JSP is a cross-platform alternative to Microsoft's Active Server Pages, which only runs in IIS on Windows NT.

Applications written to the JSP specification can be run on compliant web servers, and web servers such as Apache, Netscape Enterprise Server, and Microsoft IIS that have had Java support added. JSP should soon be available on Unix, AS/400, and mainframe platforms.

JavaServer Pages.

Infoworld Article.


(JavaServer Page) An extension to the Java servlet technology that allows HTML to be combined with Java on the same page. The Java provides the processing, and the HTML provides the layout on the Web page.

Dynamic Web Pages in Java EE
JSPs are the primary method in the Java EE platform for displaying dynamic Web pages. Special tags let Java code be included on the page as well as inserted into HTML statements without invalidating the HTML syntax. It thus lets non-Java programmers maintain HTML pages in their favorite authoring programs without interfering with the Java code on the page. With the use of standard and custom JSP tags, the Java code can be completely hidden (see JSTL and JSP tag).

From JSPs to Java Servlets
At runtime, the application server turns the JSP into a Java servlet (.jsp to .java file) using a JSP converter, which is a part of the servlet container. The servlet is then compiled into bytecode (.class) and run on the server like any other servlet.

The JSP can also call Enterprise JavaBeans (EJBs) for additional processing. JSPs are the Java counterpart to Microsoft's ASPs (Active Server Pages). See servlet and servlet container.

JSPs Run in the Server
JSPs and servlets are server-side applications that are standard features of the Java EE platform.