| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 ] |
| Articles Books | Presentations Weblogs |
- Template-Based Code Generation with Apache Velocity, Part 2 by Giuseppe Naccarato - [Clicks: 203]
As described in part one of this series, code generation typically uses a template engine to transform some kind of "model" into compilable code, given the formatting specified by a template. In this second part of the series, I will show how to use Velocity inside of a code generator that is based on a well-defined Internal Object Model (IOM).
[Includes source code]
http://www.onjava.com/pub/a/onjava/2004/06/02/cg-vel-2.html - Jun, 2004 - Template-Based Code Generation with Apache Velocity, Part 1 by Giuseppe Naccarato - [Clicks: 162]
This article demonstrates a simple code generator in Java that uses Velocity. The generator takes an XML representation of classes and data members and generates the Java code to define them. The generation process will be driven by a template that encapsulates...
[Includes source code]
http://www.onjava.com/pub/a/onjava/2004/05/05/cg-vel1.html - May, 2004 - Migrating to Velocity by Jason R. Briggs - [Clicks: 105]
Velocity offers a compelling way to develop web applications, but converting an existing JSP-based project is no simple task. Jason Briggs shows how he used Velocity servlets to ease the transition.
http://www.onjava.com/pub/a/onjava/2004/04/14/velocity.html - Apr, 2004 - Velocity - An Introduction by Thomas Paul - [Clicks: 308]
… The main advantage of using Velocity over JSP is that Velocity is simple to use. The Velocity Template Language (VTL) is so constrained in its capabilities that it helps to enforce separation of business logic from the view. You won't see any Java classes in a Velocity template (an HTML document with some Velocity placeholders). In fact, Velocity is so simple to use that you can teach your HTML team how to use Velocity in just a few hours.
http://www.javaranch.com/newsletter/200403/Journal200403.jsp#a1 - Mar, 2004 - Client and server-side templating with Velocity by Sing Li - [Clicks: 114]
Velocity is a versatile, open source templating solution that can be used standalone in report generation/data transformation applications, or as a view component in MVC model frameworks. In this article, Sing Li introduces Velocity and reveals how you can integrate its template-processing capabilities into your own client-side standalone application, server-side Web application, or Web services.
[Includes source code]
http://www-106.ibm.com/developerworks/library/j-velocity/ - Feb, 2004
- Pro Jakarta Velocity: From Professional to Expert
by Rob Harrop - [Clicks: 75]
Nearly any application you build requires some form of output. And the output format may change on a regular basis— which can lead to a heavy maintenance burden and a restrictive test cycle. But by utilizing the power of the Velocity template engine, you can integrate templated output into your application, decoupling the application logic from the output format. This in-depth look at Velocity leads you immediately toward configuration and setup, all the way to full-blown application development. This is not merely a book about Web development—as the multi-purpose Velocity does more than replace JSP. Instead, this book demonstrates many of these alternative Velocity uses.
Apress, Paperback - Aug, 2004
- Apache Velocity by Naeem Bari - [Clicks: 80]
This presentation will introduce developers to Velocity, and how to use it for web applications. We will write a small servlet for demonstration purposes. Naeem will also discuss how his framework uses Velocity. Oh, and we will be using the Eclipse IDE, so developers will be able to see it in action.
[Formats: WAR]
http://www.ociweb.com/javasig/knowledgebase/2004-07/index.html - Jul, 2004
- Sending Velocity-based E-Mail with Spring by Matt Raible - [Clicks: 132]
Matt Raible has written about the JavaMail and Velocity support in the Spring Framework. The article is a short tutorial for setting up Spring's JavaMail support on a PositionManager class, followed by replacing the e-mail's text with a Velocity template. Matt is the author of the upcoming Spring Live book on the framework.
http://www.theserverside.com/blogs/showblog.tss?id=SpringVelocityEmail - Apr, 2004