Class GoogleCAPTCHATag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.GoogleCAPTCHATag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP Tag to insert Google RECAPTCHA libraries.
- Since:
- 9.0
- Version:
- 11.6
- 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
doEndTag()
Inserts the JavaScript for Google RECAPTCHA into the JSP.void
release()
void
Updates the action name.void
setAuthOnly
(boolean isAuthOnly) Sets whether to display for authenticated users only.void
setForce
(boolean doForce) Sets whether to force a Google call even if the CAPTCHA was previously validated.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
GoogleCAPTCHATag
public GoogleCAPTCHATag()
-
-
Method Details
-
setAction
-
setAuthOnly
public void setAuthOnly(boolean isAuthOnly) Sets whether to display for authenticated users only.- Parameters:
isAuthOnly
- TRUE for authenticated users only, otherwise FALSE
-
setForce
public void setForce(boolean doForce) Sets whether to force a Google call even if the CAPTCHA was previously validated.- Parameters:
doForce
- TRUE if a call is always made, otherwise FALSE
-
doEndTag
Inserts the JavaScript for Google RECAPTCHA into the JSP.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport#EVAL_PAGE always
- Throws:
JspException
- if an I/O error occurs
-
release
public void release()- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-