Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
P. 1
Velocity Users Guide

Velocity Users Guide

Ratings: (0)|Views: 2,399|Likes:
Published by api-3771999
j2ee
j2ee

More info:

Published by: api-3771999 on Oct 16, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

 
Velocity Users Guide
The Jakarta Velocity Developers
Version 1.5Copyright
©
2006 The Apache Software Foundation
 
Table of Contents
1. Preface..................................................................................................................................11.1. About this Guide...........................................................................................................11.2. Acknowledgements.......................................................................................................11.3. Feedback .....................................................................................................................12. What is Velocity?....................................................................................................................22.1. The Fruit Store Example.................................................................................................22.2. Velocity Template Language (VTL): An Introduction..........................................................32.3. Hello Velocity World!....................................................................................................43. Language elements...................................................................................................................53.1. Statements and Directives...............................................................................................53.2. References...................................................................................................................73.3. Comments...................................................................................................................73.4. Escaping VTL elements..................................................................................................84. References............................................................................................................................ 114.1. Identifiers.................................................................................................................. 114.2. Variables................................................................................................................... 114.3. Properties.................................................................................................................. 12Default property lookup rules...................................................................................... 134.4. Methods.................................................................................................................... 134.5. Reference Miscellany................................................................................................... 15Separating Identifiers and template text......................................................................... 15Quiet reference notation............................................................................................. 155. Directives............................................................................................................................. 175.1. The
directive..................................................................................................... 17Assigning null values to references............................................................................... 19String Literals........................................................................................................... 205.2. The #literal Directive................................................................................................... 215.3. Conditionals - #if/#elseif/#else....................................................................................... 225.4. Loops - #foreach......................................................................................................... 235.5. Loading resources....................................................................................................... 24File inclusion - #include............................................................................................. 25Template inclusion - #parse......................................................................................... 255.6. Stop template rendering - #stop...................................................................................... 276. Operators............................................................................................................................. 286.1. The AND Operator...................................................................................................... 296.2. The OR Operator......................................................................................................... 296.3. The NOT Operator...................................................................................................... 307. Velocity Macros.................................................................................................................... 317.1. Velocimacro Arguments............................................................................................... 327.2. Velocimacro Properties................................................................................................ 337.3. Velocimacro Trivia...................................................................................................... 348. Formatting Issues................................................................................................................... 359. Other Features and Miscellany................................................................................................. 369.1. Math......................................................................................................................... 36Velocity Version 1.5 Velocity Users Guide ii
 
9.2. Range Operator........................................................................................................... 369.3. Advanced Issues: Escaping and !.................................................................................... 379.4. Velocimacro Miscellany............................................................................................... 389.5. String Concatenation.................................................................................................... 39Velocity Users GuideVelocity Version 1.5 Velocity Users Guide iii

Activity (5)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
pksutar285 liked this
Chandu Kempaiah liked this
ssubhranshu liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->