Velocity is a Java based template engine.It permits anyone to use a simple yet powerful template language to reference objects defined in Java code.
An alternative to JSP and PHP, and few others. Velocity framework can be used in following areas:- Web apps, dynamic HTML pages are created and processed with VelocityViewServlet or number of frameworks that support Velocity - Source code generation- Automatic e-mails- XML transformation, provides an ant task called Anakia which reads an XML file and makes it available to a Velocity template. What are the features of Velocity?Velocity framework has following features:- Velocity is MVC based- It segregates html template code from Java code- It emphasizes on role based web app development - Velocity offers better maintainable web applications.
Here is a little description of how it could be used:
Solutions Exploration:
blah blah blah $colorUtil.red($SUBJECT) blah blah
-----------------------------------------------
I have used velocity extensively when I worked on an adapter's FCIF work. But, that's about it. Everything was straight pojo field mapping to same named property in the template with a dollar sign in front. The colorUtil looks way cool, but it still operates on the premise that SUBJECT is a property not literal text, correct?
-----------------------------------------------
No comments:
Post a Comment