tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarl Skogsholm <j...@lamarido.net>
Subject Re: How do I run servlets on the root directory of localhost?
Date Sun, 13 Jun 2004 00:44:27 GMT
Here is my log entry:
127.0.0.1 - - [12/Jun/2004:20:39:49 -0500] "GET / HTTP/1.1" 200 3567
127.0.0.1 - - [12/Jun/2004:20:39:49 -0500] "GET /css/style.css HTTP/1.1" 
200 3567
127.0.0.1 - - [12/Jun/2004:20:39:49 -0500] "GET /js/functions.js HTTP/1.1" 
200 3567
127.0.0.1 - - [12/Jun/2004:20:39:50 -0500] "GET /images/button_showme.gif 
HTTP/1.1" 200 3567
127.0.0.1 - - [12/Jun/2004:20:39:50 -0500] "GET /images/bottom.gif 
HTTP/1.1" 200 3567

web.xml mapping:

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



On Sat, 12 Jun 2004 17:30:16 -0700, Hassan Schroeder 
<hassan@webtuitive.com> wrote:

> Jarl Skogsholm wrote:
>
>> The paths in my servlet are relative.  I didn't see any 404 entries in 
>> my logs.  Is that a different debug level?
>
> The standard Web logs from AccessLogValve -- if you haven't yet
> configured one, it'd probably be a good idea :-)
>
> But you can tell the effective URL of the image with `View Source`
> in your browser, as well.
>
>> If I try to access an image directly it still brings up my servlet.
>
> If you enter the URL of an image within your webapp, it brings up
> your servlet? What's the servlet-mapping in web.xml??
>


-- 
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety.
-- Benjamin Franklin (1755)

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


Mime
View raw message