tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robbert <robbert.ouweh...@gmail.com>
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 [mailto:robbert.ouwehand@gmail.com] 
>> 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:

<servlet-mapping>
  <servlet-name>StatistiekServlet</servlet-name>
  <url-pattern>/</url-pattern>
</servlet-mapping>

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: http://www.nabble.com/CSS-not-being-used-when-a-Servlet-is-involved-tf2521410.html#a7037029
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message