org.apache.struts.taglib.html
public class ErrorsTag extends TagSupport
org.apache.struts.action.ActionErrors.
The following optional message keys will be utilized if corresponding messages exist for them in the application resources:
Version: $Rev: 164530 $ $Date: 2005-04-25 04:11:07 +0100 (Mon, 25 Apr 2005) $
| Field Summary | |
|---|---|
| protected String | bundle
The servlet context attribute key for our resources. |
| protected static Locale | defaultLocale
The default locale on our server. |
| protected String | footer
The message resource key for errors footer. |
| protected String | header
The message resource key for errors header. |
| protected static String | lineEnd
The line ending string. |
| 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. |
| Method Summary | |
|---|---|
| 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) |
Deprecated: Use Locale.getDefault() directly.
The default locale on our server.Deprecated: No longer used.
The line ending string.null to return all errors.Throws: JspException if a JSP exception has occurred