I can't tell if this is a bug or intended behavior:

I have a servlet that acts as the error page for my webapp.  Note that this is
set up using the web.xml file, not the errorPage directive in the JSPs (if that
makes any difference?)

When there is an error (say 500 Internal Server Error), it returns a WML page
saying things went wrong.   This page is being properly generated, but the HTTP
response code being sent along with it is "200 OK"!

The request attribute java.servlet.error.status_code is set to 500, as I would
expect.  Calling response.setStatus(500) in the error servlet changes nothing.

This is the response I get, headers included:

HTTP/1.0 200 OK
Content-Type: text/vnd.wap.wml;charset=UTF-8
Cache-Control: no-cache
Servlet-Engine: Tomcat Web Server/3.2 (final) (JSP 1.1; Servlet 2.2; Java
1.3.0; SunOS 5.8 sparc; java.vendor=Sun Microsystems Inc.)

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="Error 500" id="error">
<do label="Back" type="prev">
<prev/>
</do>
<p>
We're sorry, your request could be fulfilled.
<br/>
500 Internal Server Error
</p>
</card>
</wml>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to