Class ErrorCodeTag

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    public class ErrorCodeTag
    extends ResponseContextTag
    Since:
    MicroStrategy Web 8.1.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorCodeTag()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ResponseContextTagHelper getHelper()
      Method for retrieving the helper related with the tag.
      void setAttrName​(java.lang.String attrName)
      Specifies an XML attribute name to use when formatting the error code into an XML document.
      void setDefaultValue​(java.lang.String defaultValue)
      Specifies a default numeric value to be returned when there is no error code.
      void setPropName​(java.lang.String propName)
      Specifies a JSON property name to use when formatting the error code into a JSON expression.
      • Methods inherited from class javax.servlet.jsp.tagext.TagSupport

        doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ErrorCodeTag

        public ErrorCodeTag()
    • Method Detail

      • setAttrName

        public void setAttrName​(java.lang.String attrName)
        Specifies an XML attribute name to use when formatting the error code into an XML document. When specified, it will generate the following:
        attrName="ERROR_CODE"
        Parameters:
        attrName - The XML attribute name to use.
      • setPropName

        public void setPropName​(java.lang.String propName)
        Specifies a JSON property name to use when formatting the error code into a JSON expression. When specified, it will generate the following:
        'propName': ERROR_CODE
        Parameters:
        propName - The name of the JavaScript property to use.
      • setDefaultValue

        public void setDefaultValue​(java.lang.String defaultValue)
        Specifies a default numeric value to be returned when there is no error code.
        Parameters:
        defaultValue - The default numeric value to use.
        Since:
        MicroStrategy Web 9.0.0