public abstract class ConditionalTagBase
extends javax.servlet.jsp.tagext.TagSupport
Modifier and Type | Field and Description |
---|---|
protected String |
cookie
The name of the cookie to be used as a variable.
|
protected String |
header
The name of the HTTP request header to be used as a variable.
|
protected static MessageResources |
messages
The message resources for this package.
|
protected String |
name
The name of the JSP bean to be used as a variable (if
property is not specified), or whose property is to be
accessed (if property is specified). |
protected String |
parameter
The name of the HTTP request parameter to be used as a variable.
|
protected String |
property
The name of the bean property to be used as a variable.
|
protected String |
role
The name of the security role to be checked for.
|
protected String |
scope
The scope to search for the bean named by the name property, or "any
scope" if null.
|
protected String |
user
The user principal name to be checked for.
|
Constructor and Description |
---|
ConditionalTagBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
condition()
Evaluate the condition that is being tested by this particular tag, and
return
true if the nested body content of this tag should
be evaluated, or false if it should be skipped. |
int |
doEndTag()
Evaluate the remainder of the current page normally.
|
int |
doStartTag()
Perform the test required for this particular tag, and either evaluate
or skip the body of this tag.
|
String |
getCookie() |
String |
getHeader() |
String |
getName() |
String |
getParameter() |
String |
getProperty() |
String |
getRole() |
String |
getScope() |
String |
getUser() |
void |
release()
Release all allocated resources.
|
void |
setCookie(String cookie) |
void |
setHeader(String header) |
void |
setName(String name) |
void |
setParameter(String parameter) |
void |
setProperty(String property) |
void |
setRole(String role) |
void |
setScope(String scope) |
void |
setUser(String user) |
protected static MessageResources messages
protected String cookie
protected String header
protected String name
property
is not specified), or whose property is to be
accessed (if property
is specified).protected String parameter
protected String property
protected String role
protected String scope
protected String user
public String getCookie()
public void setCookie(String cookie)
public String getHeader()
public void setHeader(String header)
public String getName()
public void setName(String name)
public String getParameter()
public void setParameter(String parameter)
public String getProperty()
public void setProperty(String property)
public String getRole()
public void setRole(String role)
public String getScope()
public void setScope(String scope)
public String getUser()
public void setUser(String user)
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception occurspublic int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- if a JSP exception occurspublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
protected abstract boolean condition() throws javax.servlet.jsp.JspException
true
if the nested body content of this tag should
be evaluated, or false
if it should be skipped. This
method must be implemented by concrete subclasses.javax.servlet.jsp.JspException
- if a JSP exception occursCopyright © 2000–2017 Apache Software Foundation. All rights reserved.