Hi,

to be able to set the HttpEquiv meta tag in the page headers
I recommend add the method in the 'diff -u' below.

It can be used within a screen or template via 
  $page.setHttpEquiv("refresh", "$(_interval); $link.URI")

I hope that any CVS master can takeover the diff -u from below.

:) Christoph

------------------------- cut here ------------------------
--- 
Apache-Turbine-20001109/src/java/org/apache/turbine/util/template/TemplatePageAttributes.java
      Fri Sep 29 01:48:02 2000
+++ 
+Apache-Turbine/src/java/org/apache/turbine/util/template/TemplatePageAttributes.java  
+Wed Oct 18 17:42:24 2000
@@ -160,6 +160,22 @@
     }
 
     /**
+     * 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("Expires", "Tue, 20 Aug 1996 14:25:27 GMT")</code>
+     *
+     * @param httpEquiv The value to use for the http-equiv attribute.
+     * @param content   The text for the content attribute of the meta tag.
+     * @return A TemplatePageAttributes (self).
+     */
+    public TemplatePageAttributes setHttpEquiv(String httpEquiv, String content)
+    {
+       data.getPage().getHead().addElement(
+               new Meta().setHttpEquiv(httpEquiv).setContent(content));
+       return this;
+    }
+
+    /**
      * Add a description META tag to the HEAD of the page.
      *
      * @param description A String.
------------------------- cut here ------------------------


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to