Index: lams_tool_chat/conf/hibernate/mappings/org/lamsfoundation/lams/tool/chat/model/ChatMessage.hbm.xml =================================================================== diff -u -reb77a0a10c2be753711e4653b8ff2362c3ba154a -r9029103eae5d664ff5ccc7a9dcffe060f74de24f --- lams_tool_chat/conf/hibernate/mappings/org/lamsfoundation/lams/tool/chat/model/ChatMessage.hbm.xml (.../ChatMessage.hbm.xml) (revision eb77a0a10c2be753711e4653b8ff2362c3ba154a) +++ lams_tool_chat/conf/hibernate/mappings/org/lamsfoundation/lams/tool/chat/model/ChatMessage.hbm.xml (.../ChatMessage.hbm.xml) (revision 9029103eae5d664ff5ccc7a9dcffe060f74de24f) @@ -45,7 +45,7 @@ insert="true" > @@ -58,7 +58,7 @@ insert="true" > @@ -73,11 +73,10 @@ + 500 + /error.jsp + + + 403 + /403.jsp + + + 404 + /404.jsp + + \ No newline at end of file Index: lams_tool_chat/conf/xdoclet/global-exceptions.xml =================================================================== diff -u --- lams_tool_chat/conf/xdoclet/global-exceptions.xml (revision 0) +++ lams_tool_chat/conf/xdoclet/global-exceptions.xml (revision 9029103eae5d664ff5ccc7a9dcffe060f74de24f) @@ -0,0 +1,8 @@ + + + \ No newline at end of file Index: lams_tool_chat/web/403.jsp =================================================================== diff -u --- lams_tool_chat/web/403.jsp (revision 0) +++ lams_tool_chat/web/403.jsp (revision 9029103eae5d664ff5ccc7a9dcffe060f74de24f) @@ -0,0 +1,6 @@ +<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> +<%@ taglib uri="tags-lams" prefix="lams"%> +<%@ taglib uri="tags-core" prefix="c" %> + + + \ No newline at end of file Index: lams_tool_chat/web/404.jsp =================================================================== diff -u --- lams_tool_chat/web/404.jsp (revision 0) +++ lams_tool_chat/web/404.jsp (revision 9029103eae5d664ff5ccc7a9dcffe060f74de24f) @@ -0,0 +1,8 @@ +<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> +<%@ taglib uri="tags-lams" prefix="lams"%> +<%@ taglib uri="tags-core" prefix="c" %> + + + + + Index: lams_tool_chat/web/WEB-INF/struts/struts-config.xml =================================================================== diff -u -r9393c098e5dfd603e2d37347cd1e531a25aa424a -r9029103eae5d664ff5ccc7a9dcffe060f74de24f --- lams_tool_chat/web/WEB-INF/struts/struts-config.xml (.../struts-config.xml) (revision 9393c098e5dfd603e2d37347cd1e531a25aa424a) +++ lams_tool_chat/web/WEB-INF/struts/struts-config.xml (.../struts-config.xml) (revision 9029103eae5d664ff5ccc7a9dcffe060f74de24f) @@ -29,10 +29,14 @@ - + + + Index: lams_tool_chat/web/WEB-INF/web.xml =================================================================== diff -u -rc277bb1c30c1283b5f66c6f651855c51a5f87bc5 -r9029103eae5d664ff5ccc7a9dcffe060f74de24f --- lams_tool_chat/web/WEB-INF/web.xml (.../web.xml) (revision c277bb1c30c1283b5f66c6f651855c51a5f87bc5) +++ lams_tool_chat/web/WEB-INF/web.xml (.../web.xml) (revision 9029103eae5d664ff5ccc7a9dcffe060f74de24f) @@ -167,13 +167,19 @@ --> - - Index: lams_tool_chat/web/error.jsp =================================================================== diff -u --- lams_tool_chat/web/error.jsp (revision 0) +++ lams_tool_chat/web/error.jsp (revision 9029103eae5d664ff5ccc7a9dcffe060f74de24f) @@ -0,0 +1,63 @@ +<%@ page language="java" isErrorPage="true" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%> +<%@ taglib uri="tags-lams" prefix="lams"%> +<%@ taglib uri="tags-core" prefix="c"%> +<%@ taglib uri="tags-fmt" prefix="fmt"%> + + + + +<%-- Catch JSP Servlet Exception --%> +<% +if (exception != null) { +%> + + <%=exception.getMessage()%> + + + <%=exception.getClass().getName()%> + +<% + java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream(); + java.io.PrintStream os = new java.io.PrintStream(bos); + exception.printStackTrace(os); + String stack = new String(bos.toByteArray()); +%> + + <%=stack%> + +<% +} else if ((Exception) request.getAttribute("javax.servlet.error.exception") != null) { +%> + + + <%=((Exception) request.getAttribute("javax.servlet.error.exception")).getMessage()%> + + + <%=((Exception) request.getAttribute("javax.servlet.error.exception")).getMessage() + .getClass().getName()%> + +<% + java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream(); + java.io.PrintStream os = new java.io.PrintStream(bos); + ((Exception) request.getAttribute("javax.servlet.error.exception")).printStackTrace(os); + String stack = new String(bos.toByteArray()); +%> + + <%=stack%> + +<% +} +%> +
+ + + +
+ + \ No newline at end of file Index: lams_tool_chat/web/login.jsp =================================================================== diff -u --- lams_tool_chat/web/login.jsp (revision 0) +++ lams_tool_chat/web/login.jsp (revision 9029103eae5d664ff5ccc7a9dcffe060f74de24f) @@ -0,0 +1,12 @@ +<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %> +<%@ taglib uri="tags-lams" prefix="lams"%> +<%@ taglib uri="tags-core" prefix="c" %> + + + +