tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leif Magden <le...@ucar.edu>
Subject img tag welcome-file WARNING
Date Mon, 06 Oct 2003 22:05:25 GMT
Developer warning:
  If your HTML pages have img tags with empty src attributes, i.e.

    <img height="1" width="175" alt="" src="" />  (these are used to 
format and justify text on the page)

  They will cause Tomcat to call your applications welcome-file.  
Apparently Tomcat handles this the same way as
a directory navigation, that is, it is handed to the DefaultServlet.  
This is invisible to the client but the server is
loaded with all the overhead of resolving the welcome-file over and 
over.  In my application this results in approximately
double the server/database load for each page navigation.
  The fix is to specify a clear or transparent image in the src 
attribute i.e. src="images/clear.gif"

  Config:
             Tomcat version 4.1.24
              org.apache.catalina.servlets.DefaultServlet  (possibly)
               Windows 2000 or Solaris
                J2SDK1.4.2

Leif Magden


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


Mime
View raw message