The JavaServer Pages which are known simply as JSP, are a web technology which is based on the Java technology. This should not be confused with that of JavaScript as they are two completely different languages. These pages can though generate HTML, XML as well as a slurry of other document types depending on the request of the web client. In all simplicity, JavaServer Pages allows for the implementation of both the Java code as well as certain predefined actions to be embedded into static HTML pages. Using XML like tags, these JSP actions can be called through the static HTML document and they allow for the extension of a server’s capability.
A JavaServer Page is compiled using a JSP compiler which will output a bit of Java code that is then able to be compiled again using a Java compiler before being placed into HTML code. However, the JSP compiler is also capable of generating a byte type coding which allows it to run a servlet directly and can even be interpreted by the server on the fly so as to lower load and reload times.
In context of JSP’s architecture, the concept of servlets is what comes to mind. However in the case of JSP, these are high-level abstractions and are implemented basically as an extension to the Servlet 2.1 API. Both of these technologies of course were developed by Sun Microsystems however today most of the JSP development is maintained through the Java Community Process. Furthermore, the specifications for the JavaServer Pages are released in conjunction with Sun’s Java.
Much like HTML or XML development, JSP is handled through the tags used on the page and are seen as objects on the page. As such Internet Explorer tends to regard them as Active X objects upon the loading of the web page which can be an issue depending on how one’s IE browser is set up.
Original Authors: Nick
Edit Update Authors: M.A.Harris
Updated On: 30/01/2009