2010-04-14 - Jakarta Taglibs has been retired.

For more information, please explore the Attic.

Tag reference sheet

Tag library reference for the following tag libraries:

Unstandard Tag library

This is version 1.0.

  • bind Bind a variable from a Java class into the context
  • equals Equals compares two strings
  • instanceOf InstanceOf takes an object and a string and sets the attribute named by "var" to true or false depending on the results
  • invoke Invokes a method upon a target object
  • size Work out the size of a String, Collection, Map or Object[]
  • useConstants Exposes all of the public constants in a class as a map stored in a scoped attribute

Required attributes are marked with a *

<unstandard:bind>

Bind a variable from a Java class into the context

Can contain: empty

Attributes

Name Description Type
field The field to get String
target Target to get the value from String
type For static attributes, target may not be specified and instead type may be specified String
var Attribute description String

Variables

Name Type Scope Description
specified via var String AT_BEGIN Bind a variable from a Java class into the context

<unstandard:equals>

Equals compares two strings

Can contain: empty

Example

      

Attributes

Name Description Type
ignoreCase Attribute description String
lhs Attribute description String
rhs Attribute description String
var Attribute description String

Variables

Name Type Scope Description
specified via var String AT_BEGIN Equals result

<unstandard:instanceOf>

InstanceOf takes an object and a string and sets the attribute named by "var" to true or false depending on the results

Can contain: empty

Example

      

Attributes

Name Description Type
type Attribute description String
value Attribute description String
var Attribute description String

Variables

Name Type Scope Description
specified via var String AT_BEGIN Equals result

<unstandard:invoke>

Invokes a method upon a target object

Can contain: empty

Attributes

Name Description Type
method The method to invoke String
target Target to invoke the method upon String
var Attribute description String

Variables

Name Type Scope Description
specified via var String AT_BEGIN Invoke method on an object

<unstandard:size>

Work out the size of a String, Collection, Map or Object[]

Can contain: empty

Attributes

Name Description Type
target Target to get the value from String
var Attribute description String

Variables

Name Type Scope Description
specified via var String AT_BEGIN The variable into which the length may be put

<unstandard:useConstants>

Exposes all of the public constants in a class as a map stored in a scoped attribute. The scope may be specified, but defaults to page scope.

Can contain: empty

Example

To expose all of the constants in the Integer class:
<un:useConstants var="const" className="java.lang.Integer" /> 
      

Attributes

Name Description Type
className Fully qualified name of the class from which constants will be extracted. String
scope Scope into which to store the map. Default is page scope. String
var Name of the scoped attribute into which the map will be stored. String

Variables

Name Type Scope Description
specified via var String AT_BEGIN The name of the attribute into which the map will be stored.