try:
> out.println("<link rel=\"StyleSheet\" href=\"/blaf.css\" 
note the slash in front of blaf.css

What happens is this without the slash the web thinks you want something
relative to your actual URL which might be something like .../servlet/...
So it is assumed that blaf.css should be a servlet or an alias.

This means, that this reference must begin with a slash.

good luck
Alexander Jesse

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 12:25 AM
> To: [EMAIL PROTECTED]
> Subject: Servlet and CSS
> 
> 
> 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
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 

Reply via email to