Class CheckLiteralTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
ee.jakarta.tck.pages.spec.core_syntax.scripting.el.BaseCheckTag
ee.jakarta.tck.pages.spec.core_syntax.scripting.el.CheckLiteralTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag
,jakarta.servlet.jsp.tagext.JspTag
,jakarta.servlet.jsp.tagext.Tag
,Serializable
Tag implementation to perform validation of JSP 2.0 expression language
literals.
- See Also:
-
Field Summary
Fields inherited from class ee.jakarta.tck.pages.spec.core_syntax.scripting.el.BaseCheckTag
_control, _name, _object
Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Performs validation of expression language literals using the following algorithm: If the control object is null, and the expression yields a non null object, FAIL If the control object is an instance of java.lang.Number, convert both the control and test objects to Strings.Methods inherited from class ee.jakarta.tck.pages.spec.core_syntax.scripting.el.BaseCheckTag
displayTestStatus, doStartTag, getMessage, setControl, setDisplay, setName, setObject
Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
CheckLiteralTag
public CheckLiteralTag()
-
-
Method Details
-
performCheck
protected void performCheck() throws jakarta.servlet.jsp.JspExceptionPerforms validation of expression language literals using the following algorithm:- If the control object is null, and the expression yields a non null object, FAIL
- If the control object is an instance of java.lang.Number, convert both the control and test objects to Strings. If they are not equal, FAIL.
- Otherwise, if both the control and test objects are not equal, FAIL.
- Specified by:
performCheck
in classBaseCheckTag
- Throws:
jakarta.servlet.jsp.JspException
- if an error occurs
-