Class DefaultMethodValueTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.DefaultMethodValueTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
- Direct Known Subclasses:
DefaultMethodTag
,EnumDescriptionTag
A JSP tag to call default interface methods since EL is stupid.
- Since:
- 10.0
- Version:
- 11.2
- Author:
- Luke
- See Also:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionint
protected Object
getValue()
Retrieves the method's return value via reflection.protected boolean
Returns whether the object to executae against is present.void
Sets the method name to find and call.void
Sets the object to execute against.void
Sets the request attribute name.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
DefaultMethodValueTag
public DefaultMethodValueTag()
-
-
Method Details
-
setVar
Sets the request attribute name.- Parameters:
vName
- the name of the request attribute to store the data in
-
setObject
-
setMethod
Sets the method name to find and call.- Parameters:
methodName
- the method name, minus get or set
-
hasObject
protected boolean hasObject()Returns whether the object to executae against is present.- Returns:
- TRUE if not null, otherwise FALSE
-
getValue
-
doStartTag
- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
- Throws:
JspException
-