Top "Velocity" questions

String replacement in java, similar to a velocity template

Is there any String replacement mechanism in Java, where I can pass objects with a text, and it replaces the …

java string reflection velocity
Unable to find velocity template resources

Just a simple velocity standalone app based on maven structure. Here is the code snippet written in Scala to render …

java scala velocity
$null check in velocity

I came to know about null check using $null in velocity 1.6 through a resource updated by you. Resource: Reading model …

java struts velocity
Velocity, what's the most efficient way to check if a string is empty and not null

I often have cases when a string value is absent and/or empty. Is this the best way to test …

velocity
What is the best way to access an array inside Velocity?

I have a Java array such as: String[] arr = new String[] {"123","doc","projectReport.doc"}; In my opinion the natural way …

velocity
How to convert string into integer in the Velocity template?

I have a Velocity template file which has the data from XML. I want to convert the string into integer …

velocity
Velocity string function

I just start using Java Velocity. Now I want to create a java class template. package $app.package_namespace public …

java velocity
Replace a Substring of a String in Velocity Template Language

I want to replace a part of a string in Velocity Template Language with another string. For Example: #set($a = "…

string replace velocity vtl
Velocity vs. FreeMarker

Velocity or FreeMarker? They look pretty much the same, even the syntax? What to use? Or when to use what?

java velocity template-engine freemarker
How to use 'for' loop in velocity template?

I just googled for 'for loop', but it looks like velocity has 'foreach' only. How do I use 'for loop' …

java templates velocity