public class ELErrorsTag extends ErrorsTag
Custom tag that renders error messages if an appropriate request
attribute has been created. The tag looks for a request attribute with a
reserved key, and assumes that it is either a String, a String array,
containing message keys to be looked up in the module's MessageResources,
or an object of type org.apache.struts.action.ActionErrors
.
The following optional message keys will be utilized if corresponding messages exist for them in the application resources:
This class is a subclass of the class org.apache.struts.taglib.html.ErrorsTag
which provides most of the described functionality. This subclass allows
all attribute values to be specified as expressions utilizing the
JavaServer Pages Standard Library expression language.
Constructor and Description |
---|
ELErrorsTag() |
Modifier and Type | Method and Description |
---|---|
int |
doStartTag()
Process the start tag.
|
String |
getBundleExpr()
Getter method for "bundle" tag attribute.
|
String |
getFooterExpr()
Getter method for "footer" tag attribute.
|
String |
getHeaderExpr()
Getter method for "header" tag attribute.
|
String |
getLocaleExpr()
Getter method for "locale" tag attribute.
|
String |
getNameExpr()
Getter method for "name" tag attribute.
|
String |
getPrefixExpr()
Getter method for "prefix" tag attribute.
|
String |
getPropertyExpr()
Getter method for "property" tag attribute.
|
String |
getSuffixExpr()
Getter method for "suffix" tag attribute.
|
void |
release()
Resets attribute values for tag reuse.
|
void |
setBundleExpr(String bundleExpr)
Setter method for "bundle" tag attribute.
|
void |
setFooterExpr(String footerExpr)
Setter method for "footer" tag attribute.
|
void |
setHeaderExpr(String headerExpr)
Setter method for "header" tag attribute.
|
void |
setLocaleExpr(String localeExpr)
Setter method for "locale" tag attribute.
|
void |
setNameExpr(String nameExpr)
Setter method for "name" tag attribute.
|
void |
setPrefixExpr(String prefixExpr)
Setter method for "prefix" tag attribute.
|
void |
setPropertyExpr(String propertyExpr)
Setter method for "property" tag attribute.
|
void |
setSuffixExpr(String suffixExpr)
Setter method for "suffix" tag attribute.
|
getBundle, getFooter, getHeader, getLocale, getName, getPrefix, getProperty, getSuffix, setBundle, setFooter, setHeader, setLocale, setName, setPrefix, setProperty, setSuffix
public String getBundleExpr()
public String getFooterExpr()
public String getHeaderExpr()
public String getLocaleExpr()
public String getNameExpr()
public String getPrefixExpr()
public String getPropertyExpr()
public String getSuffixExpr()
public void setBundleExpr(String bundleExpr)
public void setFooterExpr(String footerExpr)
public void setHeaderExpr(String headerExpr)
public void setLocaleExpr(String localeExpr)
public void setNameExpr(String nameExpr)
public void setPrefixExpr(String prefixExpr)
public void setPropertyExpr(String propertyExpr)
public void setSuffixExpr(String suffixExpr)
public void release()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class ErrorsTag
javax.servlet.jsp.JspException
- if a JSP exception has occurredCopyright © 2000–2017 Apache Software Foundation. All rights reserved.