Top "Vtl" questions

The Velocity Template Language (VTL) is meant to provide the easiest, simplest, and cleanest way to incorporate dynamic content in a web page.

Create and iterate through an array in Velocity Template Language

How to create an array in VTL and add contents to the array? Also how to retrieve the contents of …

vtl
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
Output part of a string in velocity

apologies if I waffle or talk a bit of jibberish but I'm new to velocity, and these forums! I need …

velocity vtl
Velocity (VM) template request parameters: Getting GET variables

How do i access GET variables as passed in the URI in a VM template? This works only when loading …

liferay velocity vtl liferay-velocity
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
Is there a way to debug Velocity templates in the traditional code debugging sense?

We make heavy use of Velocity in our web application. While it is easy to debug the Java side of …

debugging templates velocity vtl
How to access an object's public fields from a Velocity template

Here is my object class: public class Address { public final String line1; public final String town; public final String postcode; …

java field velocity public vtl
Create JSON Object with Velocity Template Language

I am working with the Apache Velocity Template Language (VTL) in AWS AppSync. In my request template I query an …

amazon-web-services aws-appsync vtl apache-velocity
AWS API Gateway - How do I get the date/timestamp/epoch in a body mapping template?

I need to include the request time in the body mapping template for an API Gateway method. Is there a …

amazon-web-services aws-api-gateway vtl