15. WebMacro

Java Servlet Programming, 2nd Edition > 15. WebMacro

 
< BACKCONTINUE >

Chapter 15. WebMacro

In the same family as Tea, but following a more servlet-driven approach, is a development framework named WebMacro, available from http://www.webmacro.org. WebMacro was created by Justin Wells at Semiotek as part of the company's site creation contract service and released as open source to improve the tool and increase the company's exposure. There are talks of merging WebMacro into the Apache Jakarta Project at http://jakarta.apache.org to gain wider community-based development. Currently there's a clone of WebMacro named Velocity being developed within Jakarta.

WebMacro is commonly referred to as a template engine, the generic name for systems that perform text replacement operations inside web page templates. There are other open source template engines available, most notably FreeMarker (http://freemarker.sourceforge.net); however, we look at WebMacro here because at the time of this writing it has the largest mindshare, has been used on large commercial sites such as AltaVista, has been integrated in open source frameworks such as Turbine (http://java.apache.org/turbine) and Melati (http://www.melati.org), and has been used as a base for prominent open source projects such as JetSpeed (http://java.apache.org/jetspeed). Like Tea, WebMacro is licensed under an Apache-style license so it can be used in conjunction with commercial applications without any problem.

This section covers WebMacro 0.94, a prerelease snapshot from October 2000. Things are subject to change and are going to change. If the example code listed here doesn't work with the final release, be sure to read the documentation provided with the WebMacro release to determine what changed. WebMacro requires Servlet API 2.0 or later and JDK 1.1.7 or later.


Last updated on 3/20/2003
Java Servlet Programming, 2nd Edition, © 2001 O'Reilly

< BACKCONTINUE >


Java servlet programming
Java Servlet Programming (Java Series)
ISBN: 0596000405
EAN: 2147483647
Year: 2000
Pages: 223

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net