【发布时间】:2015-04-07 15:07:03
【问题描述】:
我正在尝试根据状态码重定向到不同的错误 jsp
statusCode = (Integer) req.getAttribute("javax.servlet.error.status_code")
但它抛出一个空指针错误。
我的 web.xml 看起来像
<exception-type>404</exception-type><location>/AppExceptionHandler</location>
【问题讨论】:
标签: servlets http-status-code-404