|
Helping ordinary people create extraordinary websites! |
Client and server-side templating with VelocityBy Sing Li2004-06-13
Conclusions The Velocity template processor can be directly integrated into your own Java language application, immediately providing report-generation or template-processing features. Extending the template engine to Web applications, VelocityServlet can be used to process Velocity templates that generate HTML output dynamically. The Velocity tools project provides further support for componentized Web tier application development with VelocityViewServlet. VelocityViewServlet provides a convenient view layer for construction of Web-based UI based on templates. When designing complex Web applications using MVC model frameworks, Velocity as a view/templating technology -- in the form of VelocityViewServlet -- can be readily plugged into the framework. In the case of the popular Jakarta Struts MVC framework, Velocity can work alongside JSP-based view technology and interoperates with any choice of model technology. Tutorial Pages: » Client and server-side templating with Velocity » Basic template engine operation » Velocity contexts » Velocity as a standalone parser » Velocity vs. JSP technology on the server » Deploying Velocity with Tomcat 5 » Interoperating with the Struts framework » Conclusions » Resources First published by IBM developerWorks |
|