Available categories: [/] [development. ~]
关于wml中的response status code [Permalink] Thu Nov 25 00:07:59 CST 2004 没错,就是那个200/404/500。对于一般的浏览器,如果返回的status code不是200( public void setStatus(int code) { super.setStatus(HttpServletResponse.SC_OK); }结果正如所愿,丢失的错误信息全部回来了 附:一个完整的错误返回: 处理前 ============== HTTP/1.x 500 Internal Server Error Content-Type: text/vnd.wap.wml Content-Length: 695 Date: Wed, 24 Nov 2004 16:14:13 GMT Server: Apache-Coyote/1.1 Connection: close 处理后 ============== HTTP/1.x 200 OK Content-Type: text/vnd.wap.wml Content-Length: 695 Date: Wed, 24 Nov 2004 16:19:02 GMT Server: Apache-Coyote/1.1
Posted by: miles |
? |
Available categories: [/] [development. ~]
html hits:?51253