You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Leif Magden <le...@ucar.edu> on 2003/10/07 00:05:25 UTC

img tag welcome-file WARNING

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