OpenCms JSP standard taglib
Tag jsonarray


Creates a JSON array and adds it to the surrounding JSON context, or stores the JSON in a page context attribute. The content of the array is provided by nested cms:json... tags.


Tag Information
Tag Classorg.opencms.jsp.CmsJspTagJsonArray
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
varfalsetruejava.lang.StringThe name of the page context attribute to store the JSON in.
targetfalsetruejava.lang.StringThe target Object to store the JSON in. This must be another JSON object.
keyfalsetruejava.lang.StringThe key used to add this value to the surrounding JSON context. Should be used if and only if the surrounding JSON tag is a jsonobject tag.
modefalsetruejava.lang.StringThis parameter controls what is stored in the page context attribute given by the var attribute. If mode equals 'text', formatted JSON for the value will be stored; if mode equals 'object', the JSON value itself. If mode equals 'wrapper', a CmsJspJsonWrapper around the object is stored. The default value is 'wrapper'.
scopefalsetruejava.lang.StringThe scope to store the generated JSON variable in, can be 'page' (default), 'request', , 'session' or 'application'.

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.