|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport org.apache.struts.taglib.html.ErrorsTag org.apache.strutsel.taglib.html.ELErrorsTag
public class ELErrorsTag
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.
Field Summary |
---|
Fields inherited from class org.apache.struts.taglib.html.ErrorsTag |
---|
bundle, footer, header, locale, messages, name, prefix, property, suffix |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
ELErrorsTag()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.struts.taglib.html.ErrorsTag |
---|
getBundle, getFooter, getHeader, getLocale, getName, getPrefix, getProperty, getSuffix, setBundle, setFooter, setHeader, setLocale, setName, setPrefix, setProperty, setSuffix |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ELErrorsTag()
Method Detail |
---|
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()
release
in interface Tag
release
in class ErrorsTag
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class ErrorsTag
JspException
- if a JSP exception has occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |