Setting SC_INTERNAL_SERVER_ERROR in http servlet response

2007-09-05 Thread ying lcs
Hi, In my servlet, I set the response code to 500, like this: response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); Why tomcat attached this in my http response? And how can I disable it? Thank you. htmlheadtitleApache Tomcat/4.1.36 - Error report/titleSTYLE!--H1{font-family :

Re: Setting SC_INTERNAL_SERVER_ERROR in http servlet response

2007-09-05 Thread Len Popp
When a web server returns an error status, it's supposed to include an HTML page with an error message. The one you're seeing is Tomcat's default error page. You can customize the error page by putting an error-page declaration in your application's web.xml file. -- Len On 9/6/07, ying lcs