[ 原始碼: libjxp-java ]
套件:libjxp-java(1.6.1-6)
Java template engine/script processor
Jxp (Java scripted page) is a script-processor that process JSP-like files. It contains a parser to parse the script file into an abstract syntax tree and a tree processor (JxpProcessor) that will process the syntax tree to execute the code using reflection API to produce output. The main uses of Jxp are:
* as a script language engine to increase flexibility in the user application * as a template engine to produce dynamic text output
Some of the main features of Jxp include:
* Java as script/template language. Why learn another one? ;) * Run JSP-like code outside of servlet container * support common java language 1.4 constructs (partial 1.5 syntax support on jdk 1.4) * support common JSP constructs including import directive, declaration, EL etc (taglib not supported, yet) * practical template sources management framework * support caching of parsed syntax tree to eliminate reparse of template * a servlet implementation to enable web-scripting * extensible processing context for defining built-in function on the scripts