tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robbert <>
Subject RE: CSS not being used when a Servlet is involved
Date Fri, 27 Oct 2006 19:40:11 GMT

Caldarale, Charles R wrote:
>> From: Robbert [] 
>> Subject: Re: CSS not being used when a Servlet is involved
>> I'm using a link tag. It works fine if I take out the lines 
>> in web.xml that define the Servlet + Servlet Mapping. But if
>> I add them back, it doesn't work anymore.
> Does your mapping use "/"?  This means the servlet will be invoked for
> every request to the webapp that isn't handled by some other mapping.
> Perhaps you need to change it to be more specific.
>  - Chuck

My Servlet-mapping (if you mean that) is as follows:


Here's something someone else posted:

<quote="David Smith-2">
2. How are you including the css -- inline or via a <link.... > tag?  If
via a <link ....> tag, that is pulled via a separate request to the server.  

Combining that with what you just said, I assume that you're basically
saying that my servlet tries to handle the <link ...> tag that contains the
URL to my CSS, but fails miserably in the process?
If so, then how do I change my web.xml file in such a manner that the
Servlet leaves the CSS alone? 
I've tried reading the template web.xml.txt file, but I'm still relatively
new to this so I'm not sure just what to do to change it so that it leaves
the CSS alone.
View this message in context:
Sent from the Tomcat - User mailing list archive at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message