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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to