convirgance


Standard Syntax:
     <%@ taglib prefix="convirgance" uri="convirgance:web" %>

XML Syntax:
     <anyxmlelement xmlns:convirgance="convirgance:web" />

Tags and functions for exposing Convirgance services to JSP pages

Tag Library Information
Display NameNone
Version2.0
Short Nameconvirgance
URIconvirgance:web
 

Tag Summary
arrayNo Description
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>
keyNo Description
objectNo Description
parameterNo 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>
serviceNo Description
set Sets the given value to the specified variable in scope
valueNo Description
 

Function Summary
java.lang.Objectfirst( java.lang.Iterable) Returns the first item in the provided Iterable
java.lang.Objectlast( java.lang.Iterable) Returns the last item in the provided Iterable
java.lang.Stringjson( java.lang.Object) Formats the given object as valid JSON, properly escaping values to prevent injection attacks
java.lang.Stringjavascript( java.lang.Object) Formats the given object as valid Javascript, properly escaping values to prevent injection attacks
java.lang.Stringhtml( 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.Stringurlparam( java.lang.Object) Formats the given object as an escaped url parameter string
 


Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-3 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.