public class ErrorsTag
extends javax.servlet.jsp.tagext.TagSupport
org.apache.struts.action.ActionErrors
. The following optional message keys will be utilized if corresponding messages exist for them in the application resources:
Modifier and Type | Field and Description |
---|---|
protected String |
bundle
The servlet context attribute key for our resources.
|
protected String |
footer
The message resource key for errors footer.
|
protected String |
header
The message resource key for errors header.
|
protected String |
locale
The session attribute key for our locale.
|
protected static MessageResources |
messages
The message resources for this package.
|
protected String |
name
The request attribute key for our error messages (if any).
|
protected String |
prefix
The message resource key for errors prefix.
|
protected String |
property
The name of the property for which error messages should be returned,
or
null to return all errors. |
protected String |
suffix
The message resource key for errors suffix.
|
Constructor and Description |
---|
ErrorsTag() |
Modifier and Type | Method and Description |
---|---|
int |
doStartTag()
Render the specified error messages if there are any.
|
String |
getBundle() |
String |
getFooter() |
String |
getHeader() |
String |
getLocale() |
String |
getName() |
String |
getPrefix() |
String |
getProperty() |
String |
getSuffix() |
void |
release()
Release any acquired resources.
|
void |
setBundle(String bundle) |
void |
setFooter(String footer) |
void |
setHeader(String header) |
void |
setLocale(String locale) |
void |
setName(String name) |
void |
setPrefix(String prefix) |
void |
setProperty(String property) |
void |
setSuffix(String suffix) |
protected static MessageResources messages
protected String bundle
protected String locale
protected String name
protected String property
null
to return all errors.protected String header
protected String footer
protected String prefix
protected String suffix
public String getBundle()
public void setBundle(String bundle)
public String getLocale()
public void setLocale(String locale)
public String getName()
public void setName(String name)
public String getProperty()
public void setProperty(String property)
public String getHeader()
public void setHeader(String header)
public String getFooter()
public void setFooter(String footer)
public String getPrefix()
public void setPrefix(String prefix)
public String getSuffix()
public void setSuffix(String suffix)
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 has occurredpublic void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2000–2016 Apache Software Foundation. All rights reserved.