diff gnv/src/main/webapp/WEB-INF/jsp/header.jsp @ 566:5aea89b9a350

Modified the GUI that the Form with the MapViewer-Interface-Request-Body only will be shown using an explicit Action-Call. gnv/trunk@681 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 12 Feb 2010 09:55:59 +0000
parents 2183c764b403
children b89b31293772
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/header.jsp	Fri Feb 12 09:29:54 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/header.jsp	Fri Feb 12 09:55:59 2010 +0000
@@ -8,6 +8,8 @@
     exceptionMessage = (exceptionMessage != null ? exceptionMessage.toString().replaceAll(" ", ".").replaceAll(":",".").toLowerCase() : null);
     exceptionMessage = (exceptionMessage != null && exceptionMessage.toString().endsWith(".") ? exceptionMessage.toString().substring(0,exceptionMessage.toString().length()-1) : exceptionMessage);
     
+    boolean showmapviewercallBody = request.getAttribute("MAPVIEWERCALL") != null;
+    
 %>
 <%@page import="de.intevation.gnv.action.CommunicationKeys"%><html:xhtml />
 <!-- Kopfleiste-->
@@ -32,7 +34,9 @@
             
         </div>
         <br/>
-        <jsp:include page="includes/display_mapviewercall_inc.jsp" />
+         <%if (showmapviewercallBody){ %>
+            <jsp:include page="includes/display_mapviewercall_inc.jsp" />
+        <%}%>
     </div>
     <div class="errormsg" id="load_error">
          <%if (exceptionMessage != null){ %>

http://dive4elements.wald.intevation.org