public class IsRememberedUserTagSupport
extends javax.servlet.jsp.tagext.TagSupport
implements javax.servlet.jsp.tagext.TryCatchFinally
JSTL
tag support to include only the body of the tag when the current request
is one of a remembered user. If the user is either a guest user or has been authenticated
then the HTML
within this tag will not be included. If the user is a remembered registered
user then the HTML
content will be included.Constructor and Description |
---|
IsRememberedUserTagSupport()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
doCatch(java.lang.Throwable throwable)
The method handles caught exceptions.
|
void |
doFinally()
This method is an empty implementation.
|
int |
doStartTag()
This method determines whether the body of the
JSTL tag is to be included. |
public IsRememberedUserTagSupport()
public void doCatch(java.lang.Throwable throwable) throws java.lang.Throwable
dynacache
runtime not to cache this
request.doCatch
in interface javax.servlet.jsp.tagext.TryCatchFinally
throwable
- The exception that occured.java.lang.Throwable
- The throwable object that was specified.TryCatchFinally.doCatch(java.lang.Throwable)
public void doFinally()
TryCatchFinally
that this class implements.doFinally
in interface javax.servlet.jsp.tagext.TryCatchFinally
TryCatchFinally.doFinally()
public int doStartTag() throws javax.servlet.jsp.JspException
JSTL
tag is to be included.
If the request is a remembered registered user then the result is to include the body of the
JSTL
tag. Otherwise the body of the JSTL
tag will be skipped.doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- Declared by the signature of the base tag support.Tag.doStartTag()