Top "Velocity" questions

How to access static members in a Velocity template?

I'm not sure if there is a way to do this in Velocity or not: I have a User POJO …

java model-view-controller velocity
How to urlencode the asterisk

I'm trying to find what the urlencoded value of an asterisk would be. This is not for a URL, though, …

solr velocity urlencode
Check if a map is empty in Apache Velocity

In my java/spring app, I have a velocity template in which I create a map which will hold values …

spring spring-mvc velocity
how to set a map value in velocity

I tried to define a map in velocity template using the following syntax. It did not work, does anyone know …

velocity
Velocity #parse but assign it to a variable

Say you have a standard template with included (parsed) header, body, footer templates. In the body template a variable like $…

java velocity template-engine
Get count of items in a velocity list

I'm creating a set of custom templates and structures for a Liferay site. One structure provides for a repeatable section, …

liferay velocity vtl
Using Java 5 enums as Velocity variables

all. I need to use java 5 enum in velocity template, so that I could write something like public enum Level{ …

java enums velocity
Velocity - How to avoid ParseErrorException when using jQuery?

I'm trying to add a jQuery post to some JavaScript on a web page. The entire page is built up …

java javascript jquery json velocity
Escaping the dollar sign in velocity using backslash not working

I have the following segment to get rendered from a velocity template file. xyz $$foo The dollar signs need to …

java velocity
Velocity editor plugin for Eclipse Luna

I was searching for a Velocity editor plugin for Eclipse Luna but I could not find any. I found couple …

eclipse eclipse-plugin velocity