comparison gnv/src/main/webapp/WEB-INF/jsp/header.jsp @ 670:b89b31293772

Implemented first things to store/load projects. gnv/trunk@793 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 17 Mar 2010 13:31:38 +0000
parents 5aea89b9a350
children 93b4dedc4e37
comparison
equal deleted inserted replaced
669:ef1ff5fdab5b 670:b89b31293772
7 <% Object exceptionMessage = request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID); 7 <% Object exceptionMessage = request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID);
8 exceptionMessage = (exceptionMessage != null ? exceptionMessage.toString().replaceAll(" ", ".").replaceAll(":",".").toLowerCase() : null); 8 exceptionMessage = (exceptionMessage != null ? exceptionMessage.toString().replaceAll(" ", ".").replaceAll(":",".").toLowerCase() : null);
9 exceptionMessage = (exceptionMessage != null && exceptionMessage.toString().endsWith(".") ? exceptionMessage.toString().substring(0,exceptionMessage.toString().length()-1) : exceptionMessage); 9 exceptionMessage = (exceptionMessage != null && exceptionMessage.toString().endsWith(".") ? exceptionMessage.toString().substring(0,exceptionMessage.toString().length()-1) : exceptionMessage);
10 10
11 boolean showmapviewercallBody = request.getAttribute("MAPVIEWERCALL") != null; 11 boolean showmapviewercallBody = request.getAttribute("MAPVIEWERCALL") != null;
12 12
13 String exceptionProject = (String) request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_PROJECT);
13 %> 14 %>
14 <%@page import="de.intevation.gnv.action.CommunicationKeys"%><html:xhtml /> 15 <%@page import="de.intevation.gnv.action.CommunicationKeys"%><html:xhtml />
15 <!-- Kopfleiste--> 16 <!-- Kopfleiste-->
16 <div id="head" title="GDI BSH genericViewer"> 17 <div id="head" title="GDI BSH genericViewer">
17 <div id="logo"> 18 <div id="logo">
22 <a href="<html:rewrite action="/start"/>"> 23 <a href="<html:rewrite action="/start"/>">
23 <bean:message key="gnviewer.app.title" /> 24 <bean:message key="gnviewer.app.title" />
24 </a> 25 </a>
25 </h1> 26 </h1>
26 27
27 <div id="project"> 28 <div id="project">
28 <label style="font-weight:bold;"> 29 <table>
29 <bean:message key="gnviewer.project.load"/> 30 <tr>
30 | 31 <td>
31 <bean:message key="gnviewer.project.save" /> 32 <form id="storeProject" action="<%=response.encodeURL("store.do")%>" method="post">
32 </label> 33 <input type="submit" name="storeProject" value="<bean:message key="gnviewer.project.save"/>"/>
33 <div id="project_load"> 34 </form>
35 </td>
36 <td>
37 <form id="loadProject" action="<%=response.encodeURL("load.do")%>" method="post" enctype="multipart/form-data">
38 <input type="submit" name="loadProject" value="<bean:message key="gnviewer.project.load"/>"/>
39 <input type="file" name="document" accept="application/xml"/>
40 </form>
41 </td>
42 </tr>
43 </table>
44 <%if (exceptionProject != null) {%>
45 <div class="projectException"><bean:message key="<%=exceptionProject%>"/></div>
46 <%}%>
34 47
35 </div>
36 <br/> 48 <br/>
37 <%if (showmapviewercallBody){ %> 49 <%if (showmapviewercallBody){ %>
38 <jsp:include page="includes/display_mapviewercall_inc.jsp" /> 50 <jsp:include page="includes/display_mapviewercall_inc.jsp" />
39 <%}%> 51 <%}%>
40 </div> 52 </div>

http://dive4elements.wald.intevation.org