Class DefaultMethodTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.DefaultMethodValueTag
org.deltava.taglib.format.DefaultMethodTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
A JSP tag to call default interface methods since EL is stupid.
- Since:
- 9.0
- Version:
- 10.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DefaultMethodValueTag
getValue, hasObject, setMethod, setObject, setVarModifier and TypeMethodDescriptionprotected ObjectgetValue()Retrieves the method's return value via reflection.protected booleanReturns whether the object to executae against is present.voidSets the method name to find and call.voidSets the object to execute against.voidSets the request attribute name.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
DefaultMethodTag
public DefaultMethodTag()
-
-
Method Details
-
setEmpty
Sets the text to render if the object is null.- Parameters:
v- the value
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspException- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classDefaultMethodValueTag- Throws:
jakarta.servlet.jsp.JspException
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspException- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.TagSupport- Throws:
jakarta.servlet.jsp.JspException
-
release
public void release()- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classjakarta.servlet.jsp.tagext.TagSupport
-