dgraham 2003/08/16 10:39:11
Modified: src/share/org/apache/struts/taglib/html ErrorsTag.java
Log:
Replace ActionError with ActionMessage.
Revision Changes Path
1.28 +9 -9
jakarta-struts/src/share/org/apache/struts/taglib/html/ErrorsTag.java
Index: ErrorsTag.java
===================================================================
RCS file:
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/ErrorsTag.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- ErrorsTag.java 31 Jul 2003 00:25:39 -0000 1.27
+++ ErrorsTag.java 16 Aug 2003 17:39:11 -0000 1.28
@@ -68,8 +68,8 @@
import javax.servlet.jsp.tagext.TagSupport;
import org.apache.struts.Globals;
-import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
+import org.apache.struts.action.ActionMessage;
import org.apache.struts.taglib.TagUtils;
import org.apache.struts.util.MessageResources;
@@ -197,13 +197,13 @@
TagUtils.getInstance().present(pageContext, bundle, locale,
"errors.header");
boolean footerPresent =
- TagUtils.getInstance().present(pageContext, bundle, locale,
"errors.footer");
+ TagUtils.getInstance().present(pageContext, bundle, locale,
"errors.footer");
boolean prefixPresent =
- TagUtils.getInstance().present(pageContext, bundle, locale,
"errors.prefix");
+ TagUtils.getInstance().present(pageContext, bundle, locale,
"errors.prefix");
boolean suffixPresent =
- TagUtils.getInstance().present(pageContext, bundle, locale,
"errors.suffix");
+ TagUtils.getInstance().present(pageContext, bundle, locale,
"errors.suffix");
// Render the error messages appropriately
StringBuffer results = new StringBuffer();
@@ -212,7 +212,7 @@
Iterator reports = (property == null) ? errors.get() : errors.get(property);
while (reports.hasNext()) {
- ActionError report = (ActionError) reports.next();
+ ActionMessage report = (ActionMessage) reports.next();
if (!headerDone) {
if (headerPresent) {
message =
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]