Top "Velocity" questions

How to set properly the loader path of velocity

i would like that my velocityengine look for templates from a designed path. i did this : <bean id="velocityEngine" …

spring spring-mvc velocity
Why would I use a templating engine? jsp include and jstl vs tiles, freemarker, velocity, sitemesh

I'm about to choose to way to organize my view (with spring-mvc, but that shouldn't matter much) There are 6 options …

java jsp velocity tiles freemarker
How to select the format of $date in vm file?

I have a $date defined as "day of week, month day, year" ex: Tuesday, February 26, 2013 I don't know where $date …

java velocity
velocity template and javascript

I try add javascript to my velocity template. <html> <head> <title>:: $currency.CurrencyName Detail …

java spring-mvc velocity
Using velocity split() to split a string into an array doesnt seem to work

I HATE velocity and rarely ever use it but sometimes I am called upon at my job to do so. …

arrays apache split velocity
Velocity Templates - New Line

I've been working with Apache's Velocity engine and a custom template. The thing is, that I haven't been able to …

java templates velocity
How can I trim whitespace by Velocity

I have a method called render_something which can creates a lot of whitespace, for example: <a href="#">#…

java whitespace velocity removing-whitespace
Checking if a string contains a particular substring in Velocity

In Velocity I have a variable called $url which contains the following string: [ContentId(2.7507), ContentId(2.7508), ContentId(1.44551)] I want to check …

java string substring velocity
Error in velocity and log4J

I built a webapp that works perfectly fine in my localhost (tomcat). But when I tried to deploy, velocity crashes …

java servlets log4j stack-trace velocity
Velocity: Is a any way to check if variable is defined

I want to include one template nested into others cont1, cont2, cont3. And nested template should be hide one specific …

variables velocity template-engine