| Tag Summary |
| array | No Description |
| for |
Loops from begin (inclusive) to end (exclusive) incrementing by step.
Example:
<virge:for var="index" begin="0" end="4" step="2">
<div>${index+1}</div>
</virge:for>
|
| if |
Tests a value and includes the inner content only if the test is true
|
| iterate |
Loops through the supplied Iterable object
Example:
<virge:iterate var="customer" items="customers" status="loop">
<div>${loop.index+1}: ${virge:html(customer.name)}</div>
</virge:iterate>
|
| json |
Converts a raw JSON string into a JSONObject or JSONArray,
which can then be assigend to variable.
Example:
<virge:json var="json">
{"message": "Hello World!"}
</virge:json>
|
| key | No Description |
| object | No Description |
| parameter | No Description |
| query |
Executes a database query and assigns the resulting Iterable<JSONObject>
to the specified variable. Bind variables will be pulled from the JSP
scope heirarchy unless a bind object is defined. If a bind object is
defined, bind variables will be pulled from that instead.
Example:
<virge:set var="zipcode" value="12345"/>
<virge:query var="customers" jndi="jdbc/example">
select * from CUSTOMER where ZIP = :zipcode
</virge:query>
|
| service | No Description |
| set |
Sets the given value to the specified variable in scope
|
| value | No Description |
| Function Summary |
java.lang.Object | first( java.lang.Iterable) |
Returns the first item in the provided Iterable
|
java.lang.Object | last( java.lang.Iterable) |
Returns the last item in the provided Iterable
|
java.lang.String | json( java.lang.Object) |
Formats the given object as valid JSON, properly escaping values to
prevent injection attacks
|
java.lang.String | javascript( java.lang.Object) |
Formats the given object as valid Javascript, properly escaping values to
prevent injection attacks
|
java.lang.String | html( java.lang.Object) |
Formats the given object as valid HTML, properly escaping values to
prevent injection attacks. Converts the following characters into
HTML entities: &, <, >,
", '
|
java.lang.String | urlparam( java.lang.Object) |
Formats the given object as an escaped url parameter string
|