Class GoogleCAPTCHATag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.content.GoogleCAPTCHATag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class GoogleCAPTCHATag extends TagSupport
A JSP Tag to insert Google RECAPTCHA libraries.
Since:
9.0
Version:
11.6
Author:
Luke
See Also:
  • Constructor Details

    • GoogleCAPTCHATag

      public GoogleCAPTCHATag()
  • Method Details

    • setAction

      public void setAction(String name)
      Updates the action name.
      Parameters:
      name - the name
    • 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

      public int doEndTag() throws JspException
      Inserts the JavaScript for Google RECAPTCHA into the JSP.
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class TagSupport
      Returns:
      TagSupport#EVAL_PAGE always
      Throws:
      JspException - if an I/O error occurs
    • release

      public void release()
      Specified by:
      release in interface Tag
      Overrides:
      release in class TagSupport