http://www.zkoss.org/dsp/web/core Core methods and tags for zweb in DSP Provides the context for mutually exclusive conditional execution. choose org.zkoss.web.servlet.dsp.action.Choose Iterators thru a collection/array of items. forEach org.zkoss.web.servlet.dsp.action.ForEach Tests whether an condition is true and render the child only if the condition is true. if org.zkoss.web.servlet.dsp.action.If Includes the specified page. include org.zkoss.web.servlet.dsp.action.Include Represents the last alternative within a choose action. otherwise org.zkoss.web.servlet.dsp.action.Otherwise Generates the specified value into a string. out org.zkoss.web.servlet.dsp.action.Out Sets the page info, such as the content type. page org.zkoss.web.servlet.dsp.action.Page Remove an attribute. remove org.zkoss.web.servlet.dsp.action.Remove Sets an attribute. set org.zkoss.web.servlet.dsp.action.Set Represents an alternative within a {@link Choose} action. when org.zkoss.web.servlet.dsp.action.When ServletFns org.zkoss.web.fn.ServletFns Labels org.zkoss.util.resource.Labels boolean org.zkoss.xel.fn.CommonFns boolean toBoolean(java.lang.Object) Converts the specified object to a boolean. number org.zkoss.xel.fn.CommonFns java.lang.Number toNumber(java.lang.Object) Converts the specified object to a number. int org.zkoss.xel.fn.CommonFns int toInt(java.lang.Object) Converts the specified object to an integer. decimal org.zkoss.xel.fn.CommonFns java.math.BigDecimal toDecimal(java.lang.Object) Converts the specified object to a (big) decimal. string org.zkoss.xel.fn.CommonFns java.lang.String toString(java.lang.Object) Converts the specified object to a string. char org.zkoss.xel.fn.CommonFns char toChar(java.lang.Object) Converts the specified object to a character. class org.zkoss.lang.Classes java.lang.Class forNameByThread(java.lang.String) Returns the class of the specified class name. isInstance org.zkoss.xel.fn.CommonFns boolean isInstance(java.lang.Object, java.lang.Object) Tests whether an object (the second argument) is an instance of a class (the first argument). You could specify a class or the class name as the first argument. length org.zkoss.xel.fn.CommonFns int length(java.lang.Object) Returns the length of a string, array, collection or map. new org.zkoss.xel.fn.CommonFns java.lang.Object new_(java.lang.Object) Instantiates the specified class. The argument could be either a string (class name) or a Class instance. property org.zkoss.lang.Library java.lang.String getProperty(java.lang.String) Returns the library property. getProperty org.zkoss.lang.Library java.lang.String getProperty(java.lang.String) Returns the library property. eatQuot org.zkoss.xel.fn.StringFns java.lang.String eatQuot(java.lang.String) Eliminates single and double quotations to avoid JavaScript injection. cat org.zkoss.xel.fn.StringFns java.lang.String cat(java.lang.String, java.lang.String) Catenates two strings. Note: null is considered as empty. cat3 org.zkoss.xel.fn.StringFns java.lang.String cat3(java.lang.String, java.lang.String, java.lang.String) Catenates three strings. Note: null is considered as empty. cat4 org.zkoss.xel.fn.StringFns java.lang.String cat4(java.lang.String, java.lang.String, java.lang.String, java.lang.String) Catenates four strings. Note: null is considered as empty. cat5 org.zkoss.xel.fn.StringFns java.lang.String cat5(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) Catenates five strings. Note: null is considered as empty. replace org.zkoss.xel.fn.StringFns java.lang.String replace(java.lang.String, java.lang.String, java.lang.String) Replaces all occurenances of the second argument with the third argument. l org.zkoss.xel.fn.CommonFns java.lang.String getLabel(java.lang.String) Returns the label of the specified key. l2 org.zkoss.xel.fn.CommonFns java.lang.String getLabel(java.lang.String, java.lang.Object[]) Returns the label of the specified key, and formats with the specified argument. attr org.zkoss.xel.fn.XmlFns java.lang.String attr(java.lang.String, java.lang.Object) Generates an attribute for HTML/XML, name="value". If value is null or empty (if String), "" is generated. encodeURL org.zkoss.web.fn.ServletFns java.lang.String encodeURL(java.lang.String) Encoding URL to prefix the context path and to provide session info, if necessary If URI contains "*", it is resolved to the current Locale and the browser code. encodeURIComponent org.zkoss.web.servlet.http.Encodes java.lang.String encodeURIComponent(java.lang.String) Encoding a string to be used as a query name or value. escapeXML org.zkoss.xml.XMLs java.lang.String escapeXML(java.lang.String) Encodes a string that special characters are quoted to be compatible with HTML/XML. browser org.zkoss.web.fn.ServletFns boolean isBrowser(java.lang.String) Whether the current request is coming from the browser of the specified type. @param type the type of the browser. Allowed values include "robot", "ie", "ie6", "ie6-", "ie7", "ie8", "ie7-", "gecko", "gecko2", "gecko3", "gecko2-", "opara", "safari", "mil", "hil", "mil-".
Note: "ie6-" means Internet Explorer 6 only; not Internet Explorer 7 or other.
isExplorer org.zkoss.web.fn.ServletFns boolean isExplorer() Whether the current request is coming from Internet Explorer. isExplorer7 org.zkoss.web.fn.ServletFns boolean isExplorer7() Whether the current request is coming from Internet Explorer 7 or later. isGecko org.zkoss.web.fn.ServletFns boolean isGecko() Whether the current request is coming from a Gecko-based browser, such as Mozilla, Firefox and Camino. isGecko3 org.zkoss.web.fn.ServletFns boolean isGecko3() Whether the current request is coming from a Gecko 3-based browser, such as Firefox 3. isSafari org.zkoss.web.fn.ServletFns boolean isSafari() Whether the current request is coming from Safari. isOpera org.zkoss.web.fn.ServletFns boolean isOpera() Whether the current request is coming from Opera. render org.zkoss.web.fn.ServletFns void render(org.zkoss.web.servlet.dsp.action.ActionContext) Renders a DSP fragment. getCurrentLocale org.zkoss.util.Locales java.util.Locale getCurrent() Returns the locale for the current request. testCurrentLocale org.zkoss.util.Locales boolean testCurrent(java.lang.String, java.lang.String) Returns whether the current locale belongs to the specified language and/or country. @param lang the language code, e.g., en and zh. Ignored if null. @param country the country code, e.g., US. Ignored if null. If empty, it means no country code at all.