Monday, March 02, 2009

Java Server Pages

Java Server Pages (JSP) is a Java technology that allows software developers to create dynamically-generated web sites, with HTML, XML, or other document types, in response to a Web client request. The technology allows Java code and certain pre-defined actions to be embedded into static content.

The JSP syntax adds additional XML-like tags, called JSP actions, to be used to invoke built-in functionality. Additionally, the technology allows for the creation of JSP tag libraries that act as extensions to the standard HTML or XML tags. Tag libraries provide a platform independent way of extending the capabilities of a Web server.

JSPs are compiled into Java Servers by a JSP compiler. A JSP compiler may generate a server in Java code that is then compiled by the Java compiler, or it may generate byte code for the server directly. JSPs can also be interpreted on-the-fly, reducing the time taken to reload changes.

Architecturally, JSP may be viewed as a high-level abstraction of servers that is implemented as an extension of the Server 2.1 API. Both servers and JSPs were originally developed at Sun Microsystems. Starting with version 1.2 of the JSP specification, Java Server Pages have been developed under the Java Community Process. JSR 53 defines both the JSP 1.2 and Server 2.3 specifications and JSR 152 defines the JSP 2.0 specification. As of May 2006 the JSP 2.1 specification has been released under JSR 245 as part of Java EE 5.

No comments: