dlr 02/01/17 19:25:06
Modified: src/java/org/apache/turbine/util/template
TemplatePageAttributes.java
Log:
Corrected problem with JavaDoc pointed out by Bruce Altner
<baltner at hq.nasa.gov>:
A while back I referred to a problem I was having with inconsistent
behavior of the $page.setHttpEquiv() method when trying to redirect to
a different template. The javadocs (for the TemplatePageAttributes
class) suggest this syntax:
setHttpEquiv("refresh", "5; http://localhost/nextpage.html")
whereas to get it to work I needed to write:
setHttpEquiv("refresh", "5; URL=http://localhost/nextpage.html")
Now I can scrap the javascript!
Revision Changes Path
1.2 +2 -2
jakarta-turbine-2/src/java/org/apache/turbine/util/template/TemplatePageAttributes.java
Index: TemplatePageAttributes.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/template/TemplatePageAttributes.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -u -r1.1 -r1.2
--- TemplatePageAttributes.java 16 Aug 2001 05:10:02 -0000 1.1
+++ TemplatePageAttributes.java 18 Jan 2002 03:25:06 -0000 1.2
@@ -82,7 +82,7 @@
* $page.setStyleSheet("/style.css");
*
* @author <a href="mailto:[EMAIL PROTECTED]">Sean Legassick</a>
- * @version $Id: TemplatePageAttributes.java,v 1.1 2001/08/16 05:10:02 jvanzyl Exp $
+ * @version $Id: TemplatePageAttributes.java,v 1.2 2002/01/18 03:25:06 dlr Exp $
*/
public class TemplatePageAttributes
implements ApplicationTool
@@ -195,7 +195,7 @@
/**
* Sets a HttpEquiv META tag in the HEAD of the page, usage:
- * <br><code>setHttpEquiv("refresh", "5; http://localhost/nextpage.html")</code>
+ * <br><code>setHttpEquiv("refresh", "5;
URL=http://localhost/nextpage.html")</code>
* <br><code>setHttpEquiv("Expires", "Tue, 20 Aug 1996 14:25:27 GMT")</code>
*
* @param httpEquiv The value to use for the http-equiv attribute.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>