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:
- 12.0
- 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 TypeMethodDescriptionintdoEndTag()Inserts the JavaScript for Google RECAPTCHA into the JSP.voidrelease()voidUpdates the action name.voidsetAnonOnly(boolean isAuthOnly) Sets whether to display for anonymous users only.voidsetForce(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
-
setAnonOnly
public void setAnonOnly(boolean isAuthOnly) Sets whether to display for anonymous users only.- Parameters:
isAuthOnly- TRUE for unauthenticated 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:
doEndTagin interfaceTag- Overrides:
doEndTagin classTagSupport- Returns:
- TagSupport#EVAL_PAGE always
- Throws:
JspException- if an I/O error occurs
-
release
public void release()- Specified by:
releasein interfaceTag- Overrides:
releasein classTagSupport
-