Questions tagged [vtl]

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

VTL is the Velocity Template Language.

It includes Variables, Properties, Methods, Directives, Macros, and more...

Reference: http://velocity.apache.org/engine/2.0/vtl-reference.html

193 questions
0
votes
2 answers

Splitting one table into multiple tables based on columns using velocity

Ok below is the code that i have. Here we read a map from a JAVA object and populate columns based on the key and values of the map. The Java object map is of the form HashMap>. The required table will have columns equal to…
Nayan Sonthalia
  • 237
  • 1
  • 4
  • 22
0
votes
0 answers

Velocity Template Language: subtract two variables

I am new to VTL and have been trying to subtract a variable from a constant. I am sending an integer InstanceId from the back-end as a part of InstId object. I am using VTL as an XML parser. So the input to the parser is like:
0
votes
0 answers

Velocity: Define Variable based on Template?

I'm looking to automatically alter some HTML via VTL--in this case, insert extra values into HTML elements. For instance, if the core HTML I'm dealing with is I'd want to be able to dynamically find the alt tag to place…
Casey Grimes
  • 117
  • 12
0
votes
0 answers

Using Velocity Template Language or SAS code in commom task model of SAS Studio

I trying to create custom task in SAS Studio. I faced with problem, that i can't use variables of or
Sanek Zhitnik
  • 716
  • 1
  • 10
  • 25
0
votes
0 answers

Apache Velocity Template Language

How can i restrict Velocity Hash Map Object (say $ObjectName) to print fully if it is not preceded by property name. i do not want $ObjectName to print full object value if it is not appended with variable/property name like…
0
votes
2 answers

How to access AWS API Gateway Models from iOS

AWS Model schema { "$schema": "http://json-schema.org/draft-04/schema#", "title": "QuestionsModel", "type": "array", "items": { "type": "object", "properties": { "placeholder" : { "type":"string" }, "type" : {…
Carl
  • 2,896
  • 2
  • 32
  • 50
0
votes
1 answer

Velocity rendering ; problems with foreach returning true

I have a template which looks like this : #set($list = []) #foreach($x in $_global.get('agg')) $list.add($x.data.listingID) #end { "queueName": "TEST", "hosts": "localhost", "credentials": { "username": "guest", …
joanOfArc
  • 467
  • 1
  • 6
  • 16
0
votes
1 answer

How to escape trailing backslash in NVelocity

I am using NVelocity to process various PowerShell scripts before they are executed against a server. My question is how to escape a backslash trailing a variable: e.g. ls \\$computername\c$ $computername should be replaced with a valid computer…
Ben Foster
  • 34,340
  • 40
  • 176
  • 285
0
votes
1 answer

Nested foreach with Map does not work properly in Velocity

I want to generate below code snippet using Velocity. Map> fruitsAndTypesMap = new HashMap>(); String fruit_Apple = "Apple"; List types_Apple = new ArrayList(); …
Gana
  • 482
  • 3
  • 11
  • 32
0
votes
1 answer

Is it possible to use a different pattern in a velocity template for variable substitution

I have many text files I want to use as a velocity template but the actual notation for the variable is : {my_variable_x}. In Velocity template by defaut it will be like this: $my_variable_x Is there a way to configure velocity to use a different…
рüффп
  • 5,172
  • 34
  • 67
  • 113
0
votes
1 answer

Is there a velocity port in JavaScript

I know apache velocity is available for Java and .NET. Is there also a port to JavaScript? My aim is to translate VTL templates inside the browser without a roundtrip to the web server.
Olaf Japp
  • 480
  • 5
  • 19
0
votes
1 answer

Building tables from plain text

I'm attempting to build a winforms application that can do the following: Take in a PDF file Extract data (based on some sort of template or configuration file) Build data tables Serialize and upload the data tables to a web service As of right…
emd
  • 1,173
  • 9
  • 21
-2
votes
1 answer

What does tripple back slash "\\\" means?

I am working on aws project which consist of VTL(Velocity template language) library and graphql schema. The database is also of aws particularly dynamodb. Now Its sending(mutation) data to db through "\". I wanted to know what does the meaning of…
1 2 3
12
13