Tag Documentation

[tag libraries] [tags]

The following document contains a summary of all theJellytag libraries.

Tag Libraries

[tag libraries] [tags]

LibraryDescription
jelly:util

A number of utility tags such as for tokenizing Strings.

jelly:util

A number of utility tags such as for tokenizing Strings.

Tag NameDescription
availableA tag which evaluates its body if the given file is available.The file can be specified via a File object or via a relative or absoluteURI from the current Jelly script.
fileA tag which creates a java.io.Filefrom a given name.
loadTextA tag which loads text from a file or URI into a Jelly variable.
propertiesA tag which loads a properties file from a given file name or URIwhich are loaded into the current context.
replaceA tag that replaces occurrences of a character or string in its body or(or value) and places the result into the context
sleepA tag which sleeps for a given amount of time.
sort
tokenize

Tags

[tag libraries] [tags]

util:available

A tag which evaluates its body if the given file is available.The file can be specified via a File object or via a relative or absoluteURI from the current Jelly script.

Attribute NameTypeDescription
escapeTextboolean
filejava.io.FileSets the file to use to test whether it exists or not.
trimboolean
urijava.lang.StringSets the URI to use to test for availability.The URI can be a full file based URL or a relative URIor an absolute URI from the root context.

util:file

A tag which creates a java.io.Filefrom a given name.

Attribute NameTypeDescription
escapeTextboolean
namejava.lang.StringName of the file to be placed into the context
trimboolean
varjava.lang.StringName of the variable to contain the file

util:loadText

A tag which loads text from a file or URI into a Jelly variable.

Attribute NameTypeDescription
encodingjava.lang.StringSets the encoding to use to read the file
escapeTextboolean
filejava.io.FileSets the file to be parsed as text
trimboolean
urijava.lang.StringSets the uri to be parsed as text.This can be an absolute URL or a relative or absolute URIfrom this Jelly script or the root context.
varjava.lang.StringSets the name of the variable which will be exported with the text value of thegiven file.

util:properties

A tag which loads a properties file from a given file name or URIwhich are loaded into the current context.

Attribute NameTypeDescription
escapeTextboolean
filejava.lang.StringSets the file name to be used to load the properties file.
trimboolean
urijava.lang.StringSets the URI of the properties file to use. This can be a full URL or a relative URIor an absolute URI to the root context of this JellyContext.
varjava.lang.StringIf this is defined then a Properties object containing all theproperties will be created and exported, otherwise the current variablescope will be set to the value of the properties.

util:replace

A tag that replaces occurrences of a character or string in its body or(or value) and places the result into the context

Attribute NameTypeDescription
escapeTextboolean
newjava.lang.StringSets the newString.
newCharjava.lang.StringSets the newChar.
oldjava.lang.StringSets the oldString.
oldCharjava.lang.StringSets the oldChar.
trimboolean
valueorg.apache.commons.jelly.expression.ExpressionSets the value.
varjava.lang.StringSets the var.

util:sleep

A tag which sleeps for a given amount of time.

Attribute NameTypeDescription
escapeTextboolean
millislongSets the amount of time that this thread should sleep for in milliseconds.
trimboolean

util:sort

Attribute NameTypeDescription
escapeTextboolean
itemsjava.util.ListSet the items to be sorted
propertyjava.lang.String
trimboolean
varjava.lang.StringThe variable to hold the sorted collection.

util:tokenize

Attribute NameTypeDescription
delimjava.lang.Stringthe delimiter that separates the tokens
escapeTextboolean
trimboolean
varjava.lang.StringThe variable name to hold the list of tokens