Index: lams_tool_mindmap/web/error.jsp =================================================================== diff -u -re48fc0e1f6819e257b87efa36c3baec3c1c488f0 -rac9c27fe43c7732c0cb2a48b5470e6b9ac6397af --- lams_tool_mindmap/web/error.jsp (.../error.jsp) (revision e48fc0e1f6819e257b87efa36c3baec3c1c488f0) +++ lams_tool_mindmap/web/error.jsp (.../error.jsp) (revision ac9c27fe43c7732c0cb2a48b5470e6b9ac6397af) @@ -1,39 +1,23 @@ -<%-- -Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) -License Information: http://lamsfoundation.org/licensing/lams/2.0/ - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - - http://www.gnu.org/licenses/gpl.txt ---%> - - - - <%@ 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"%> +<%@ page import="org.lamsfoundation.lams.util.Configuration" import="org.lamsfoundation.lams.util.ConfigurationKeys" %> + + + <%-- Catch JSP Servlet Exception --%> +<%-- The javascript method checkForErrorScreen in error.js is coded to match this page exactly. +---- If you change this page, please change the javascript. --%> <% -if (exception != null) { +if ( Configuration.getAsBoolean(ConfigurationKeys.ERROR_STACK_TRACE) ) { +if (exception != null ) { %> <%=exception.getMessage()%> @@ -72,18 +56,21 @@ <% } +} %> - +
+ +