[cvs] expresso commit by ppilgrim: Many methods in

JCorporate Ltd jcorp at jcorporate.com
Fri Jan 14 22:39:22 UTC 2005


Log Message:
-----------
Many methods in org.apache.struts.util.RequestUtils and
org.apache.struts.util.ResponseUtils are deprecated. Replace
RequestUtils.* and ResponseUtils.* with
org.apache.struts.taglib.TagUtils.getInstance().* See also
http://wiki.apache.org/struts/StrutsUpgradeNotes11to124

Modified Files:
--------------
    expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/struts/taglib/html:
        ExSubmitTag.java

Revision Data
-------------
Index: ExSubmitTag.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/struts/taglib/html/ExSubmitTag.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/ext/struts/taglib/html/ExSubmitTag.java -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/ext/struts/taglib/html/ExSubmitTag.java -u -r1.9 -r1.10
--- expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/struts/taglib/html/ExSubmitTag.java
+++ expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/struts/taglib/html/ExSubmitTag.java
@@ -64,17 +64,20 @@
 
 package com.jcorporate.expresso.ext.struts.taglib.html;
 
+import java.util.Hashtable;
+
+import javax.servlet.jsp.JspException;
+
+import org.apache.struts.taglib.TagUtils;
+import org.apache.struts.taglib.html.Constants;
+import org.apache.struts.taglib.html.SubmitTag;
+import org.apache.struts.util.ResponseUtils;
+
 import com.jcorporate.expresso.core.controller.ControllerElement;
 import com.jcorporate.expresso.core.controller.Transition;
 import com.jcorporate.expresso.core.misc.StringUtil;
 import com.jcorporate.expresso.ext.struts.taglib.ControllerUtils;
 import com.jcorporate.expresso.ext.taglib.MessageUtil;
-import org.apache.struts.taglib.html.Constants;
-import org.apache.struts.taglib.html.SubmitTag;
-import org.apache.struts.util.ResponseUtils;
-
-import javax.servlet.jsp.JspException;
-import java.util.Hashtable;
 
 
 /**
@@ -223,7 +226,7 @@
         results.append(">");
 
         // Render this element to our writer
-        ResponseUtils.write(pageContext, results.toString());
+        TagUtils.getInstance().write(pageContext, results.toString());
 
         // Evaluate the remainder of this page
         return (EVAL_PAGE);


More information about the cvs mailing list