JSP Weaver
Encyclopedia
JSP Weaver is a JavaServer Pages
JavaServer Pages
JavaServer Pages is a Java technology that helps software developers serve dynamically generated web pages based on HTML, XML, or other document types...

 interpreter. Unlike JSP compilers it evaluates the JSP files directly, without generating or compiling intermediate Java source files for the JSP Java servlet
Java Servlet
A servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed via a request-response programming model. Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by Web servers...

.

Although this sacrifices some performance on page rendering (10%-20% overhead depending on the compiler in question) it enables a much faster reloading of changes made to the source of the JSP file (10-20 times decrease in time depending on the page and the compiler in question).

Unlike simpler attempts at interpreting JSP-like syntax (e.g. Facelets
Facelets
In computing, Facelets is an open source Web template system under the Apache license and the default view handler technology for JavaServer Faces . The language requires valid input XML documents to work...

) it supports embedded Java statements called Scriptlet
Scriptlet
In JavaServer Pages technology, a scriptlet is a piece of Java-code embedded in the HTML-like JSP code.The scriptlet is everything inside the tags. Between these the user can add any valid Scriplet i.e. any valid Java Code....

s (a standard JSP feature). This allows full compatibility with the JSP specification versions 1.0 to 2.1.

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK