OpenCms JSP standard taglib
Tag jsonvalue

Takes a JSON value from the 'value' attribute and adds it to the surrounding JSON context or sets it as a page context attribute.

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

valuefalsetruejava.lang.StringThe JSON value.
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'.
parsefalsetruejava.lang.StringIf true, uses the given value as a string to parse JSON from, else just uses the value as-is.
errorVarfalsetruejava.lang.StringName of a page scope variable to store a parse error in. If no parse error occurs, the variable is set to null.

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.