public class RecentAlertsTag
extends javax.servlet.jsp.tagext.TagSupport
A JSP tag that will get the recent alerts for a user and put them in the request context.
Attributes:
| name | required | default |
|---|---|---|
| var | true | N/A |
| sizeVar | true | N/A |
| maxAlerts | false | 2 |
| Constructor and Description |
|---|
RecentAlertsTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
int |
doStartTag()
Process the tag, generating and formatting the list.
|
void |
release() |
void |
setMaxAlerts(String maxAlerts)
Set the max number of alerts to get.
|
void |
setSizeVar(String sizeVar)
Set the name of the request attribute that should hold the size of the list of alerts.
|
void |
setVar(String var)
Set the name of the request attribute that should hold the list of alerts.
|
public void setVar(String var)
var - the name of the request attributepublic void setSizeVar(String sizeVar)
sizeVar - the name of the request attributepublic void setMaxAlerts(String maxAlerts)
maxAlerts - the max number of alertspublic final int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - if the scripting variable can not be found or if there is an error processing the tagpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.