Hi, Is it possible to avoid error reports?
I have an application, where in some cases it is appropriate to return a HTTP reply code of 404, which of course can be done by setting - response.setStatus(HttpServletResponse.SC_NOT_FOUND); But then Tomcat creates an error-report and in this way MANIPULATES THE HTTP REPLIES! I would wery much like to *avoid* this and have a *clean* reply returned! (Besides, I think it is a real bad habit to reveal the technology used on the server-side, because it is of no relevance for the user-agent -on the contrary, it can be harmful-...) How do I do this? ----- As far as I can tell, I can not use <eror-page>, because the scanario is not specific for the reply-code "404", but for a range of codes. Surely, I do not want to specify all codes. What also might complicate things: The content-type request within the HTTP request is not fixed to a single type. ----- I see, that the <host>-element has an attribute "errorReportValveClass" - "Java class name of the error reporting valve which will be used by this Host. The responsability of this valve is to output error reports.". How do I knock this out? Can I set it to the empty attribute like errorReportValveClass="" or something? You are not going to say, I have to implement a valve myself? Now, THAT would be... lame. ----- ? Med venlig hilsen Morten Sabroe Mortensen mailto:[EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]