Re: HTTP status code 404

2005-09-05 Thread Paul Singleton
HttpServletResponse.setStatus(HttpServletResponse.SC_NOT_FOUND); in cooperation with the mentioned error-page directive in web.xml. Mirek L. Mohan Arun wrote: Tomcat 4.1 How can I configure Tomcat 4 to return HTTP status code 404 for a 404 Page Not Found error? Currently

Re: HTTP status code 404

2005-09-05 Thread QM
On Mon, Sep 05, 2005 at 06:28:05PM +0100, Paul Singleton wrote: : But we want *no* error page, just a 404 status returned to : the browser, which will then presumably present this failure : to the user in its own way. Or have I musunderstood 404s? Yes and no. Browsers are free to interpret 404s

Re: HTTP status code 404

2005-09-05 Thread Paul Singleton
QM wrote: On Mon, Sep 05, 2005 at 06:28:05PM +0100, Paul Singleton wrote: : But we want *no* error page, just a 404 status returned to : the browser, which will then presumably present this failure : to the user in its own way. Or have I musunderstood 404s? Yes and no. Browsers are free to

HTTP status code 404

2005-09-02 Thread L. Mohan Arun
Tomcat 4.1 How can I configure Tomcat 4 to return HTTP status code 404 for a 404 Page Not Found error? Currently it displays a HTML page with Error type etc. with status code 200. The docs say error-page element in web.xml can be configured to serve another page in response to a 404 error

Re: HTTP status code 404

2005-09-02 Thread Mirek Stohr
You should use the following procedure HttpServletResponse.setStatus(HttpServletResponse.SC_NOT_FOUND); in cooperation with the mentioned error-page directive in web.xml. Mirek L. Mohan Arun wrote: Tomcat 4.1 How can I configure Tomcat 4 to return HTTP status code 404