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, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected 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 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:
doStartTagin interfaceTag- Overrides:
doStartTagin classTagSupport- Throws:
JspException
-