Details
Description
Using the standard error-page declaration in web.xml only works when a java.lang.Exception is used as exception type, like
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error.jspx</location>
</error-page>
Using a specific exception, like i.e. a NullPointerException the redirect to an error page won't work anymore:
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/error.jspx</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error.jspx</location>
</error-page>
Using a specific exception, like i.e. a NullPointerException the redirect to an error page won't work anymore:
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/error.jspx</location>
</error-page>
-
Hide
- Test_ErrorPage.zip
- 151 kB
- Michael Thiem
-
- Test_ErrorPage/.classpath 0.5 kB
- Test_ErrorPage/.mymetadata 0.3 kB
- Test_ErrorPage/.project 1 kB
- Test_ErrorPage/src/test/Bean.java 0.2 kB
- Test_ErrorPage/WebRoot/exception.jspx 0.9 kB
- Test_ErrorPage/WebRoot/index.jsp 0.0 kB
- Test_ErrorPage/WebRoot/main.jspx 0.9 kB
- Test_ErrorPage/WebRoot/.../MANIFEST.MF 0.0 kB
- Test_ErrorPage/WebRoot/nullpointer.html 0.3 kB
- Test_ErrorPage/WebRoot/nullpointer.jspx 0.8 kB
- Test_ErrorPage/WebRoot/.../.faces-config.mex 0.1 kB
- Test_ErrorPage/WebRoot/.../test/Bean.class 0.6 kB
- Test_ErrorPage/WebRoot/.../faces-config.xml 0.4 kB
- Test_ErrorPage/WebRoot/.../html_basic.tld 244 kB
- Test_ErrorPage/WebRoot/.../jsf_core.tld 25 kB
- Test_ErrorPage/WebRoot/WEB-INF/web.xml 3 kB
- Test_ErrorPage/WebRoot/.../add.gif 0.1 kB
- Test_ErrorPage/WebRoot/.../arrow-ff-dis.gif 0.9 kB
- Test_ErrorPage/WebRoot/.../arrow-ff.gif 0.2 kB
- Test_ErrorPage/.../arrow-first-dis.gif 0.1 kB
- Test_ErrorPage/WebRoot/.../arrow-first.gif 0.2 kB
- Test_ErrorPage/WebRoot/.../arrow-fr.gif 0.3 kB
- Test_ErrorPage/.../arrow-last-dis.gif 0.9 kB
- Test_ErrorPage/WebRoot/.../arrow-last.gif 0.3 kB
- Test_ErrorPage/.../arrow-next-dis.gif 0.9 kB
- Test_ErrorPage/WebRoot/.../arrow-next.gif 0.2 kB
- Test_ErrorPage/.../arrow-previous-dis.gif 0.9 kB
- Test_ErrorPage/.../arrow-previous.gif 0.2 kB
- Test_ErrorPage/WebRoot/.../arrow-rw-dis.gif 0.1 kB
- Test_ErrorPage/.../cal_arrow_left.gif 0.2 kB
Issue Links
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
This tab is subject to removal in future versions.