You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hr...@apache.org on 2005/08/06 23:46:11 UTC
svn commit: r230596 -
/struts/apps/trunk/examples/src/webapp/exercise/html-messages.jsp
Author: hrabago
Date: Sat Aug 6 14:46:05 2005
New Revision: 230596
URL: http://svn.apache.org/viewcvs?rev=230596&view=rev
Log:
Replace references to ActionError with ActionMessage.
Replace references to ActionErrors with ActionMessages.
Modified:
struts/apps/trunk/examples/src/webapp/exercise/html-messages.jsp
Modified: struts/apps/trunk/examples/src/webapp/exercise/html-messages.jsp
URL: http://svn.apache.org/viewcvs/struts/apps/trunk/examples/src/webapp/exercise/html-messages.jsp?rev=230596&r1=230595&r2=230596&view=diff
==============================================================================
--- struts/apps/trunk/examples/src/webapp/exercise/html-messages.jsp (original)
+++ struts/apps/trunk/examples/src/webapp/exercise/html-messages.jsp Sat Aug 6 14:46:05 2005
@@ -3,14 +3,14 @@
<html:html>
<head>
<title>Test Error and Message Tags</title><%
- ActionErrors errors = new ActionErrors();
- errors.add("property1", new ActionError("property1error1"));
- errors.add("property2", new ActionError("property2error1"));
- errors.add("property2", new ActionError("property2error2"));
- errors.add("property2", new ActionError("property2error3"));
- errors.add("property3", new ActionError("property3error1"));
- errors.add("property3", new ActionError("property3error2"));
- errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("globalError"));
+ ActionMessages errors = new ActionMessages();
+ errors.add("property1", new ActionMessage("property1error1"));
+ errors.add("property2", new ActionMessage("property2error1"));
+ errors.add("property2", new ActionMessage("property2error2"));
+ errors.add("property2", new ActionMessage("property2error3"));
+ errors.add("property3", new ActionMessage("property3error1"));
+ errors.add("property3", new ActionMessage("property3error2"));
+ errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("globalError"));
request.setAttribute(Globals.ERROR_KEY, errors);
ActionMessages messages = new ActionMessages();
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org