You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by mb...@apache.org on 2021/07/04 22:08:02 UTC
[roller] 07/09: added error pages for 400 and 500 errors.
This is an automated email from the ASF dual-hosted git repository.
mbien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/roller.git
commit 2fc77ed38902933e526bd39730f1ba9c4eed7d4e
Author: Michael Bien <mb...@gmail.com>
AuthorDate: Tue May 18 03:12:29 2021 +0200
added error pages for 400 and 500 errors.
---
app/src/main/webapp/WEB-INF/web.xml | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/app/src/main/webapp/WEB-INF/web.xml b/app/src/main/webapp/WEB-INF/web.xml
index 295dfaa..bd1a0ab 100644
--- a/app/src/main/webapp/WEB-INF/web.xml
+++ b/app/src/main/webapp/WEB-INF/web.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
- version="3.0">
+ xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
+ version="4.0">
<display-name>Roller Weblogger</display-name>
@@ -463,10 +463,21 @@
</error-page>
<error-page>
+ <error-code>500</error-code>
+ <location>/roller-ui/errors/error.jsp</location>
+ </error-page>
+
+ <error-page>
<error-code>403</error-code>
<location>/roller-ui/errors/403.jsp</location>
</error-page>
+ <!-- 400 can reuse 404 template -->
+ <error-page>
+ <error-code>400</error-code>
+ <location>/roller-ui/errors/404.jsp</location>
+ </error-page>
+
<error-page>
<error-code>404</error-code>
<location>/roller-ui/errors/404.jsp</location>