json
Tag property


Represents a single property of a JSON object. This tag should be contained within a json:object or json:array tag. It will render a single name/value pair for the name and value specified. The value may be specified using either the value attribute, or it may be contained within the body of the tag. If using the body of the tag, then the content is assumed to be a String. If using the value attribute, the type can be any of String, Boolean, Integer, Long, Double or Object. Boolean types will be converted to a Javascript boolean value. Integer/Long/Double types will be converted to a Javascript numeric value. Strings and Objects will be converted to Javascript string values (using toString) All String data will have all whitespace trimmed from the beginning and end of the string before being set on the JSON Object. This behavior may be overridden by setting trim=false.


Tag Information
Tag Classatg.taglib.json.JsonPropertyTag
TagExtraInfo ClassNone
Body Contentscriptless
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
namefalsetruejava.lang.StringThe name of the property
valuefalsetruejava.lang.ObjectThe value of the property. If set this will override anything set in the body of the tag.
trimfalsetruebooleanShould whitespace be trimmed from the beginning and end of String values? (default:true)
escapeXmlfalsetruebooleanShould special XML characters be escaped? (default:true)

Variables
No Variables Defined.


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