You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Marce Bariou <ma...@brasnah.com> on 2003/07/29 18:23:57 UTC

How to modify header in a HTML template

Thank for your Help

I want to add in the HTML template header, the following directive :

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

I presume than the final page is assembled somewhere in a doBuild() or
something like that as a string, but I can't find out where .

thanks for a help

Marcel


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: How to modify header in a HTML template

Posted by Stefan Kuhn <st...@uni-koeln.de>.
Hi Marce(l?),
I modified WEB-INF/templates/vm/layouts/html/default.vm in order to do similar 
things. Don't know if this is the official way, but it works ...
Stefan

Am Tuesday 29 July 2003 19:20 schrieb Marce Bariou:
> Le mar 29/07/2003 à 18:23, Marce Bariou a écrit :
> > Thank for your Help
> >
> > I want to add in the HTML template header, the following directive :
> >
> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> >
> > I presume than the final page is assembled somewhere in a doBuild() or
> > something like that as a string, but I can't find out where .
> >
> > thanks for a help
> >
> > Marcel
>
> I answer to myself
>
> I will Try to use this method :
>
> setHttpEquiv(String, String) - Method in class
> org.apache.turbine.util.template.TemplatePageAttributes
>         Sets a HttpEquiv META tag in the HEAD of the page, usage:
>         setHttpEquiv("refresh", "5; URL=http://localhost/nextpage.html")
>         setHttpEquiv("Expires", "Tue, 20 Aug 1996 14:25:27 GMT")
>
>         Maybe it works I don't know
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

-- 
Stefan Kuhn M. A.
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Zülpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7428   Fax: +49 (0) 221-470-7786
My public PGP key is available at http://pgp.mit.edu


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: How to modify header in a HTML template

Posted by Tang Guangyu <yt...@online.sh.cn>.
You can set header like this: $page.setHttpEquiv("Content-Type", "text/html;
charset=GB2312")
. Remember not to add any HTML <head> tag to layouts, or it will conflict
with head tag created by Turbine.

----- Original Message -----
From: "Marce Bariou" <ma...@brasnah.com>
To: <tu...@jakarta.apache.org>
Sent: Wednesday, July 30, 2003 1:20 AM
Subject: Re: How to modify header in a HTML template


> Le mar 29/07/2003 à 18:23, Marce Bariou a écrit :
> > Thank for your Help
> >
> > I want to add in the HTML template header, the following directive :
> >
> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> >
> > I presume than the final page is assembled somewhere in a doBuild() or
> > something like that as a string, but I can't find out where .
> >
> > thanks for a help
> >
> > Marcel
> >
>
> I answer to myself
>
> I will Try to use this method :
>
> setHttpEquiv(String, String) - Method in class
> org.apache.turbine.util.template.TemplatePageAttributes
>         Sets a HttpEquiv META tag in the HEAD of the page, usage:
>         setHttpEquiv("refresh", "5; URL=http://localhost/nextpage.html")
>         setHttpEquiv("Expires", "Tue, 20 Aug 1996 14:25:27 GMT")
>
>         Maybe it works I don't know
>
>
>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: How to modify header in a HTML template

Posted by Marce Bariou <ma...@brasnah.com>.
Le mar 29/07/2003 à 18:23, Marce Bariou a écrit :
> Thank for your Help
> 
> I want to add in the HTML template header, the following directive :
> 
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> 
> I presume than the final page is assembled somewhere in a doBuild() or
> something like that as a string, but I can't find out where .
> 
> thanks for a help
> 
> Marcel
> 

I answer to myself

I will Try to use this method :

setHttpEquiv(String, String) - Method in class
org.apache.turbine.util.template.TemplatePageAttributes
        Sets a HttpEquiv META tag in the HEAD of the page, usage: 
        setHttpEquiv("refresh", "5; URL=http://localhost/nextpage.html")
        setHttpEquiv("Expires", "Tue, 20 Aug 1996 14:25:27 GMT") 
        
        Maybe it works I don't know



> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org