You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by rl...@apache.org on 2003/07/27 07:43:36 UTC
cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/bean CookieTag.java
rleland 2003/07/26 22:43:36
Modified: src/share/org/apache/struts/taglib/bean CookieTag.java
Log:
Use TagUtils.saveException instead of RequestUtils's version.
Revision Changes Path
1.11 +7 -7 jakarta-struts/src/share/org/apache/struts/taglib/bean/CookieTag.java
Index: CookieTag.java
===================================================================
RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/bean/CookieTag.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- CookieTag.java 22 Sep 2002 06:32:45 -0000 1.10
+++ CookieTag.java 27 Jul 2003 05:43:36 -0000 1.11
@@ -69,7 +69,7 @@
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import org.apache.struts.util.MessageResources;
-import org.apache.struts.util.RequestUtils;
+import org.apache.struts.taglib.TagUtils;
/**
@@ -177,7 +177,7 @@
if (values.size() < 1) {
JspException e = new JspException
(messages.getMessage("cookie.get", name));
- RequestUtils.saveException(pageContext, e);
+ TagUtils.getInstance().saveException(pageContext, e);
throw e;
}
@@ -187,7 +187,7 @@
pageContext.setAttribute(id, cookie);
} else {
cookies = new Cookie[values.size()];
- pageContext.setAttribute(id, (Cookie[]) values.toArray(cookies));
+ pageContext.setAttribute(id, values.toArray(cookies));
}
return (SKIP_BODY);
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org