[cvs] expresso commit by ppilgrim: Many methods in
JCorporate Ltd
jcorp at jcorporate.com
Fri Jan 14 22:33:09 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/taglib:
ExConfigTag.java
Revision Data
-------------
Index: ExConfigTag.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib/ExConfigTag.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib/ExConfigTag.java -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib/ExConfigTag.java -u -r1.12 -r1.13
--- expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib/ExConfigTag.java
+++ expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib/ExConfigTag.java
@@ -64,15 +64,16 @@
package com.jcorporate.expresso.ext.taglib;
-import com.jcorporate.expresso.core.misc.ConfigManager;
-import com.jcorporate.expresso.core.misc.ConfigurationException;
-import com.jcorporate.expresso.core.misc.StringUtil;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.PageContext;
+
import org.apache.log4j.Logger;
+import org.apache.struts.taglib.TagUtils;
import org.apache.struts.taglib.bean.DefineTag;
-import org.apache.struts.util.RequestUtils;
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.PageContext;
+import com.jcorporate.expresso.core.misc.ConfigManager;
+import com.jcorporate.expresso.core.misc.ConfigurationException;
+import com.jcorporate.expresso.core.misc.StringUtil;
/**
@@ -126,7 +127,7 @@
// Retrieve the required property value
Object value = this.value;
if ((value == null) && (name != null)) {
- value = RequestUtils.lookup(pageContext, name, property, scope);
+ value = TagUtils.getInstance().lookup(pageContext, name, property, scope);
}
if (value == null) {
@@ -174,7 +175,7 @@
"' in configuration for DB/Context '" +
dbToUse + "'");
log.error("No value ever defined", e);
- RequestUtils.saveException(pageContext, e);
+ TagUtils.getInstance().saveException(pageContext, e);
throw e;
}
More information about the cvs
mailing list