org.appfuse.webapp.taglib
Class Secure
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.appfuse.webapp.taglib.Secure
- All Implemented Interfaces:
- BodyTag, IterationTag, JspTag, Serializable, Tag
- public class Secure
- extends BodyTagSupport
This tag library is designed to be used on a JSP
to switch HTTP -> HTTPS protocols and vise versa.
If you want to force the page to be viewed in SSL,
then you would do something like this:
<tag:secure />
or
<tag:secure mode="secured" />
If you want the force the page to be viewed in
over standard http, then you would do something like:
<tag:secure mode="unsecured" />
- Author:
- Jon Lipsky
Contributed by:
XEsoft GmbH
Oskar-Messter-Strasse 18
85737 Ismaning, Germany
http://www.xesoft.com
- See Also:
- Serialized Form
- JSP Tag:
- name="secure"
bodycontent="empty"
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODE_SECURED
public static String MODE_SECURED
MODE_UNSECURED
public static String MODE_UNSECURED
MODE_EITHER
public static String MODE_EITHER
TAG_NAME
protected String TAG_NAME
Secure
public Secure()
setMode
public void setMode(String aMode)
- Sets the mode attribute. This is included in the tld file.
- JSP Attribute:
- description="The mode attribute (secure | unsecured)"
required="false"
rtexprvalue="true"
doStartTag
public int doStartTag()
throws JspException
- Throws:
JspException
doAfterBody
public int doAfterBody()
throws JspException
- Throws:
JspException
doEndTag
public int doEndTag()
throws JspException
- Throws:
JspException
Copyright © 2002-2004