sraeburn 2003/07/25 01:59:32
Modified: web/upload upload.jsp
Log:
Updated to reference Globals constants.
Revision Changes Path
1.6 +4 -3 jakarta-struts/web/upload/upload.jsp
Index: upload.jsp
===================================================================
RCS file: /home/cvs/jakarta-struts/web/upload/upload.jsp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- upload.jsp 10 Dec 2002 06:03:21 -0000 1.5
+++ upload.jsp 25 Jul 2003 08:59:32 -0000 1.6
@@ -1,6 +1,7 @@
<%@ page import="org.apache.struts.action.*,
java.util.Iterator,
- org.apache.struts.webapp.upload.UploadForm"%>
+ org.apache.struts.webapp.upload.UploadForm,
+ org.apache.struts.Globals"%>
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
@@ -13,9 +14,9 @@
<body>
<!-- Find out if the maximum length has been exceeded. -->
-<logic:present name="<%= Action.ERROR_KEY %>" scope="request">
+<logic:present name="<%= Globals.ERROR_KEY %>" scope="request">
<%
- ActionErrors errors = (ActionErrors) request.getAttribute(Action.ERROR_KEY);
+ ActionErrors errors = (ActionErrors)
request.getAttribute(Globals.ERROR_KEY);
//note that this error is created in the validate() method of UploadForm
Iterator iterator =
errors.get(UploadForm.ERROR_PROPERTY_MAX_LENGTH_EXCEEDED);
//there's only one possible error in this
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]