How to control text in error description in browser?
Hello, Under certain conditions my servlet must send an error response to the browser. I do this by sending ((HttpServletResponse) res).setError(503, "You goofed"). When this message is displayed in the browser, this is what gets shown: In large font on the top of the browser page, the text appears: "HTTP Status 503 - You goofed". Below it, in smaller font, the following is displayed: Type Status report Message You goofed Description The requested service (You goofed) is not currently available. Apache Tomcat/4.1.27 As you can see, the description field is not very meaningful. I could not find a method in HttpServletResponse that controls the description. Does anyone know if (and how) the browser content can be controlled from the servlet? Thanks for any help. Alex Molochnikov Gestalt Corporation www.gestalt.com PS: No, I don't really say "You goofed" in the message text - it just saves me typing :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat - Apache connector (JK2) - limited capacity?
I am facing a weird problem: Our Tomcat is connected to Apache web server via JK2 connector. The servlet creates a PDF file and sends it to to the browser. If the file is larger than, say, 100K (haven't measured the breaking point, but it is below 150K) then the browser page comes empty. Hitting the "Refresh" button makes the content appear. Smaller files get displayed without problem. If instead of connecting through Apache we go straight to Tomcat (by adding port 8080 to the URL), any file of any size can be displayed. So, it must be the connector that has some default limit on the size of transmitted data stream that causes this strange effect. But I cannot find anything in the config files/properties to even remotely hint at such limit. Has anyone experienced something like this? Here is the environment: OS: Win 2000 Server Apache 2.0.47 Tomcat 4.1.27 Connector JK 2.0.43 Any help will be greatly appreciated. Alex Molochnikov Gestalt Corporation