You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by sr...@apache.org on 2003/07/23 10:45:20 UTC
cvs commit: jakarta-struts/web/exercise-taglib html-messages.jsp
sraeburn 2003/07/23 01:45:19
Modified: web/exercise-taglib html-messages.jsp
Log:
Updated to reference Globals constants.
Revision Changes Path
1.2 +3 -3 jakarta-struts/web/exercise-taglib/html-messages.jsp
Index: html-messages.jsp
===================================================================
RCS file: /home/cvs/jakarta-struts/web/exercise-taglib/html-messages.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- html-messages.jsp 16 Jul 2002 04:56:42 -0000 1.1
+++ html-messages.jsp 23 Jul 2003 08:45:19 -0000 1.2
@@ -1,4 +1,4 @@
-<%@ page language="java" import="org.apache.struts.action.*" %>
+<%@ page language="java" import="org.apache.struts.action.*, org.apache.struts.Globals" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html>
<head>
@@ -12,7 +12,7 @@
errors.add("property3", new ActionError("property3error1"));
errors.add("property3", new ActionError("property3error2"));
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("globalError"));
- request.setAttribute(Action.ERROR_KEY, errors);
+ request.setAttribute(Globals.ERROR_KEY, errors);
ActionMessages messages = new ActionMessages();
messages.add("property1", new ActionMessage("property1message1"));
@@ -22,7 +22,7 @@
messages.add("property3", new ActionMessage("property3message1"));
messages.add("property3", new ActionMessage("property3message2"));
messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("globalMessage"));
- request.setAttribute(Action.MESSAGE_KEY, messages);
+ request.setAttribute(Globals.MESSAGE_KEY, messages);
%>
</head>
<body bgcolor="white">
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org