Use Netscape to develop this for the first time, since Netscape complains
more ( Netscape 6 is worst / best ).

the file
blaf.css
as you have now written the code is assumed to be in the /servlet dir, which
probably is not the case.

Use something like

request.getContextPath()+"/css/blaf.css"

which assumes your css is in the

<appname>-web/css/

directory. ( The app can be mounted anywhere, request.getContextPath()
handles that. )



Johan


----- Original Message -----
From: "Holden Glova" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 3:57 AM
Subject: Re: Servlet and CSS


> Brynolf Andersson wrote:
> >
> > Hi all gurus,
> > I am trying to include a CSS in my servlet:
> >
> > out.println("<html>");
> > out.println("<head>");
> > out.println("<title>Untitled Document</title>");
> > out.println("<meta http-equiv=\"Content-Type\" content=\"text/html;
> > charset=iso-8859-1\">");
> > out.println("<link rel=\"StyleSheet\" href=\"blaf.css\"
> > type=\"text/css\">");
> > out.println("</head>");
> >
> > But it won't work for me. So where should I put the blaf.css in my Web
> > application structure to get it working, or is there something wrong
with my
> > HTML ???
> >
> > Thanks a lot
>
> I'll start with the obvious? is blaf.css
> located there? Remember that they are
> relative paths.
>
> Kind regards,
>
> +-----------------------------------------------+
> | Holden Glova            Alchemy Group
> Limited |
> | [EMAIL PROTECTED]   P: +64 3
> 962-0396     |
> | Software Engineer       F: +64 3
> 962-0388     |
> |
> http://www.alchemy.co.nz
> |
> +-----------------------------------------------+


Reply via email to