You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ecs-dev@jakarta.apache.org by "Lach, Thierry" <Th...@pentamark.com> on 2002/02/21 19:27:48 UTC

ECS 1.4.1 - How to use Link ?

I want to generate a link to a stylesheet in an HTML.

I'm currently doing the following:

<clip>

import org.apache.ecs.html.*;

<skip/>

    head head = new Head();
    head.addElement(new Link().setRel("stylesheet")
                              .setType("text/css")
                              .setTarget("mystylesheet.css"));
    head.addElement(new Title("My Title"));
</clip>

But I don't see the <link/> in the output.  I am seeing the title as
expected.


-----------------------------------------------------------
Thierry Lach
InterOne Marketing Group
PentaMark Worldwide Inc.
Business:  thierry.lach@pentamark.com
Home: tlach@ameritech.net
Phone: (248)293-4715


Re: ECS 1.4.1 - How to use Link ?

Posted by robert burrell donkin <ro...@mac.com>.
hi Thierry

i've given your sample code a spin and i can see the link tag in the 
output string i get.

maybe i'm a little confused about what you mean by missing (maybe you mean 
that the link tag doesn't seem to having any effect) or maybe you need to 
post more code (or maybe you need to update to ecs-1.4.1).

- robert

On Thursday, February 21, 2002, at 06:27 PM, Lach, Thierry wrote:

> I want to generate a link to a stylesheet in an HTML.
>
> I'm currently doing the following:
>
> <clip>
>
> import org.apache.ecs.html.*;
>
> <skip/>
>
>     head head = new Head();
>     head.addElement(new Link().setRel("stylesheet")
>                               .setType("text/css")
>                               .setTarget("mystylesheet.css"));
>     head.addElement(new Title("My Title"));
> </clip>
>
> But I don't see the <link/> in the output.  I am seeing the title as
> expected.
>
>
> -----------------------------------------------------------
> Thierry Lach
> InterOne Marketing Group
> PentaMark Worldwide Inc.
> Business:  thierry.lach@pentamark.com
> Home: tlach@ameritech.net
> Phone: (248)293-4715
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>