velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Dekany <ddek...@freemail.hu>
Subject Re: CSS file problem
Date Thu, 11 May 2006 10:55:39 GMT
Thursday, May 11, 2006, 11:45:58 AM, Joe Desbonnet wrote:

> View the "source code" of your resulting web page. Use your mouse to
> select the href attribute of the link tag. And past into another
> browser window. See if it loads your CSS page. If you you need to
> adjust the content of your "stylesheet" context variable.
>
> Remember it's the *browser* that is going to be reading that file via
> a HTTP request. It needs to be accessible via whatever HTTP server
> (Tomcat?) you are using.
>
> Joe.

And the problem will be that the content of the WEB-INF directory is
hidden according to the Servlet Spec.

> On 5/11/06, Plorks mail <plork123@hotmail.com> wrote:
>>
>> hi all
>>
>> i'm trying to include a css file but it's being ignored
>>
>> i have this in my vm template
>>
>> <html>
>> <head>
>>         <link rel="stylesheet" type="text/css" href="$stylesheet"/>
>> </head>
>> ........
>>
>> where $stylesheet = webapps/projectname/WEB-INF/style.css
>>
>> i've also tried putting it directly under the project name like this
>> webapps/projectname/style.css but it still gets ignored
>>
>> can anyone tell me what i'm doing wrong
>>
>> many thanks
>>
>> _________________________________________________________________
>> Be the first to hear what's new at MSN - sign up to our free newsletters!
>> http://www.msn.co.uk/newsletters
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>


-- 
Best regards,
 Daniel Dekany


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


Mime
View raw message