Helping ordinary people create extraordinary websites!
GET OUR NEWSLETTER
Your Email:
 

Client and server-side templating with Velocity

By Sing Li
2004-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


 | Bookmark
Related Tutorials:
» All about JAXP, Part 1
» Make Database Queries Without the Database
» Load List Values for Improved Efficiency
» 2 Ways To Implement Session Tracking
» A Simple Way to Read an XML File in Java
» Develop Aspect-Oriented Java Applications with Eclipse and AJDT

Advertise with Us!


Tutorials Scripts Web Hosting Developer Manuals
Resources