public class AuthenticationTag
extends javax.servlet.jsp.tagext.TagSupport
Tag implementation that allows convenient access to the current
Authentication object.
Whilst JSPs can access the SecurityContext directly, this tag avoids handling null conditions.
| Constructor and Description |
|---|
AuthenticationTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
int |
doStartTag() |
protected boolean |
isHtmlEscape()
Return the HTML escaping setting for this tag,
or the default setting if not overridden.
|
void |
setHtmlEscape(String htmlEscape)
Set HTML escaping for this tag, as boolean value.
|
void |
setProperty(String operation) |
void |
setScope(String scope) |
void |
setVar(String var) |
protected void |
writeMessage(String msg) |
public void setVar(String var)
public void setProperty(String operation)
public void setScope(String scope)
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionprotected void writeMessage(String msg) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionpublic void setHtmlEscape(String htmlEscape) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionprotected boolean isHtmlEscape()