Hi, Are you testing with IE? I recently heard of a problem with IE requesting the same document multiple times in background. This has something to do with determining the content-type of a document. If IE is not sure about the content-type (perhaps the http header is not present?) and no file extension is found (as it is with servlets), then IE tries to identify the content by inspection of the first bytes of the response.
I also heard of this problem together with plug-ins (like Acrobat Reader). Conclusion: 1. check your access log files: how many requests are made to the servlet? 2. get a package sniffer and check, how many request the browser sends to the server. 3. if there are multiple requests (some of them might be aborded after some bytes transfered), check the http headers of the first response. 'Content-Type: ...' present? Everything else ok? by Ste > Hi > you are right. i configured web.xml to call a servelet > or a perl cgi script to send email whenever 404 is > encountered. > > the problem is that i always get three emails for one > error > > any idea? > > > --- Chong Yu Meng <[EMAIL PROTECTED]> wrote: > > Hi Cheng, > > > > How are you testing this? Do you have a servlet that > > sends emails > > whenever you get a 404 ? Or when you get a 404, > > Tomcat directs the > > request to a JSP or servlet that sends an email ? > > I'm pretty sure Tomcat > > does not have a built-in facility that sends email. > > > > Regards. > > > > > > zhicheng wang wrote: > > > > >Hi > > >if i config tomcat (both 4 AND 5) to send email for > > >error code 404, it always send THREE emails. this > > is > > >true regardless if i use a servlet of perl cgi > > > > > >any ideas? please let me know > > > > > >if i call the servlet or cgi directly, things are > > >fine. > > > > > >thanks > > >cheng > > > > > >===== > > >Best wishes > > >Z C Wang > > > > > > > > > > > > > > > > -- > > "There is nothing so absurd but some philosopher has > > said it." > > -- Marcus Tullius Cicero > > > +----------------------------------------------------------------+ > > | Pascal Chong > > | > > | email: [EMAIL PROTECTED] > > | > > | > > | > > | Please visit my site at : http://cymulacrum.net > > | > > | If you're using my documentation, please read the > > Terms and | > > | and Conditions at http://cymulacrum.net/terms.html > > | > > > +----------------------------------------------------------------+ > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > ===== > Best wishes > Z C Wang > > > > > > ___________________________________________________________ > WIN FREE WORLDWIDE FLIGHTS - nominate a cafe in the Yahoo! > Mail Internet Cafe Awards www.yahoo.co.uk/internetcafes > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
