[ANN] jxp template engine 1.0.0-RC released

T

thlee

URL: http://jxp.sf.net

Jxp (Java scripted page) is a script-processor/template-engine that
can execute template files containing text + java code. 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. Some of the
main features of Jxp include:

* Java as template language. Why learn another one? ;)
* support common java language 1.4 constructs (1.5 syntax support
pending)
* 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

Frequently Asked Questions

1. What is jxp
Jxp template engine processes jxp template which contains some text
and java code to produce result
2. What can I use jxp for?
You can use jxp for several things:
- as a template engine for dynamic text generation.
- as a script language to allow scripting inside your application.
- as a web-script language like jsp execpt that it's much simpler
3. Why should I use jxp?
You should use jxp if you think:
- learning another language like velocity, smarty, groovy ... for
doing template in your java program doesn't make sense to you
- using xml as a scripting language (and then create the entire
expression language that mimic java) just doesn't make sense to you
- you really like java and want to do everything the java way :)
4. What is the difference between jxp and jsp?
Jxp is intepreted (no compilation involved) while jsp is compile.
Jsp is tied directly with servlet framework while jxp can be used in
anyway you like. There is no taglib support in jxp, since there is
better way to implement MVC (see Swingweb)
5. Will jxp support Java 1.5 syntax?
Jxp 2.0 is under development and will support 1.5 syntax
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top