org.apache.taglibs.request
Class IsSecureTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.taglibs.request.IsSecureTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class IsSecureTag
- extends javax.servlet.jsp.tagext.TagSupport
JSP Tag issecure, used to determine if HttpServletRequest
is secure (using HTTPS).
Includes the body of the tag if the connection is secure.
You can set the optional tag attribute value to true or
false. The body of the tag is included if issecure matches
the value.
JSP Tag Lib Descriptor
<name>issecure</name>
<tagclass>org.apache.taglibs.request.IsSecureTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>Test whether the HTTP connection is secure (using HTTPS).</info>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
- Author:
- Glenn Nielsen
- See Also:
- Serialized Form
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 |
Method Summary |
int |
doStartTag()
Tests condition of is secure HTTPS connection. |
void |
setValue(boolean value)
Set the optional tag attribute value to true or false. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsSecureTag
public IsSecureTag()
doStartTag
public final int doStartTag()
throws javax.servlet.jsp.JspException
- Tests condition of is secure HTTPS connection.
- Returns:
- SKIP_BODY if issecure doesn't match value, EVAL_BODY_include if issecure matches value
- Throws:
javax.servlet.jsp.JspException
setValue
public final void setValue(boolean value)
- Set the optional tag attribute value to true or false.
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.