Index: lams_tool_forum/conf/xdoclet/error-pages.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/conf/xdoclet/error-pages.xml,v diff -u -r1.1 -r1.2 --- lams_tool_forum/conf/xdoclet/error-pages.xml 14 Oct 2005 02:03:53 -0000 1.1 +++ lams_tool_forum/conf/xdoclet/error-pages.xml 25 Jul 2006 05:06:05 -0000 1.2 @@ -1,4 +1,13 @@ - - 403 - /403.html - \ No newline at end of file + + 500 + /error.jsp + + + 403 + /403.jsp + + + 404 + /404.jsp + + \ No newline at end of file Index: lams_tool_forum/conf/xdoclet/global-exceptions.xml =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/conf/xdoclet/global-exceptions.xml,v diff -u -r1.2 -r1.3 --- lams_tool_forum/conf/xdoclet/global-exceptions.xml 27 Oct 2005 05:29:52 -0000 1.2 +++ lams_tool_forum/conf/xdoclet/global-exceptions.xml 25 Jul 2006 05:06:05 -0000 1.3 @@ -1,7 +1,8 @@ - - + + + \ No newline at end of file Index: lams_tool_forum/web/403.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/403.jsp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_forum/web/403.jsp 25 Jul 2006 05:06:05 -0000 1.1 @@ -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_forum/web/404.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/404.jsp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_forum/web/404.jsp 25 Jul 2006 05:06:05 -0000 1.1 @@ -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_forum/web/error.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/error.jsp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_tool_forum/web/error.jsp 25 Jul 2006 05:06:05 -0000 1.1 @@ -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_forum/web/login.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/web/login.jsp,v diff -u -r1.1 -r1.2 --- lams_tool_forum/web/login.jsp 3 Jul 2006 07:03:10 -0000 1.1 +++ lams_tool_forum/web/login.jsp 25 Jul 2006 05:06:05 -0000 1.2 @@ -1,24 +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" %> + + -<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> -<% -String path = request.getContextPath(); -String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; -%> - - - - - - System logon required - - - - - - You need login here. - - -