diff gnv/src/main/webapp/WEB-INF/jsp/header.jsp @ 34:25fdec8b4c69

Added Global Errorhandling to the GNV-Client gnv/trunk@170 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 02 Oct 2009 08:38:57 +0000
parents a52aecf5bb9b
children cfe6467d3b7b
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/header.jsp	Mon Sep 28 10:36:08 2009 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/header.jsp	Fri Oct 02 08:38:57 2009 +0000
@@ -4,7 +4,8 @@
 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
 <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%>
-<html:xhtml />
+<% Object exceptionMessage = request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID);%>
+<%@page import="de.intevation.gnv.action.CommunicationKeys"%><html:xhtml />
 <!-- Kopfleiste-->
 <div id="head" title="GDI BSH genericViewer"> 
 	<div id="logo">
@@ -29,7 +30,7 @@
 		</div>
 		<br/>
 		<div class="errormsg" id="load_error">
-			<html:errors property="fileload"/>
+			<%=exceptionMessage != null ? exceptionMessage.toString():"" %>
 		</div>
 	</div>
 </div>

http://dive4elements.wald.intevation.org