Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 1002:b1eea43ba133
Second attempt to apply redirect link patch.
gnv/trunk@1206 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 13 Jun 2010 16:28:37 +0000 |
parents | 27029f0ec7e1 |
children | 1b42a86184f6 |
comparison
equal
deleted
inserted
replaced
1001:ebc3d018af6a | 1002:b1eea43ba133 |
---|---|
1 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> | 1 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> |
2 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean-el" prefix="bean-el" %> | 2 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean-el" prefix="bean-el" %> |
3 <%@page import="java.util.Collection"%> | |
4 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> | 3 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> |
5 <%@page import="de.intevation.gnv.action.CommunicationKeys"%> | 4 <%@page import="de.intevation.gnv.action.CommunicationKeys"%> |
6 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> | 5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> |
7 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> | 6 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> |
8 <%@page import="java.util.Iterator"%> | |
9 <% | 7 <% |
10 String exception = (String)request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_INPUT_ID); | |
11 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); | 8 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); |
12 Object ui = request.getAttribute("ui"); | 9 Object ui = request.getAttribute("ui"); |
13 Object staticui = request.getAttribute("staticui"); | 10 Object staticui = request.getAttribute("staticui"); |
14 Object chart = request.getAttribute("chart"); | 11 Object chart = request.getAttribute("chart"); |
15 Object statistic = request.getAttribute("statistic"); | 12 Object statistic = request.getAttribute("statistic"); |
16 Object histogram = request.getAttribute("histogram"); | 13 Object histogram = request.getAttribute("histogram"); |
17 Object wms_published = request.getAttribute("wms_published"); | 14 Object wms_published = request.getAttribute("wms_published"); |
18 boolean furthertargets = true; | |
19 | 15 |
20 if (chart == null && statistic == null && histogram == null && wms_published == null) { | 16 if (chart == null && statistic == null && histogram == null && wms_published == null) { |
21 boolean supportChart = sm.getOutputMode("chart") != null; | 17 boolean supportChart = sm.getOutputMode("chart") != null; |
22 if (supportChart) { | 18 if (supportChart) { |
23 chart = "true"; | 19 chart = "true"; |
24 } | 20 } |
25 } | 21 } |
26 | 22 |
27 Object furthertargetsObject = request.getAttribute("furthertargets"); | |
28 if (furthertargetsObject != null){ | |
29 furthertargets = ((Boolean)furthertargetsObject).booleanValue(); | |
30 } | |
31 | 23 |
32 Object exceptionMessage = request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID); | 24 Object exceptionMessage = request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID); |
33 exceptionMessage = (exceptionMessage != null ? exceptionMessage.toString().replaceAll(" ", ".").replaceAll(":",".").toLowerCase() : null); | 25 exceptionMessage = (exceptionMessage != null ? exceptionMessage.toString().replaceAll(" ", ".").replaceAll(":",".").toLowerCase() : null); |
34 exceptionMessage = (exceptionMessage != null && exceptionMessage.toString().endsWith(".") ? exceptionMessage.toString().substring(0,exceptionMessage.toString().length()-1) : exceptionMessage); | 26 exceptionMessage = (exceptionMessage != null && exceptionMessage.toString().endsWith(".") ? exceptionMessage.toString().substring(0,exceptionMessage.toString().length()-1) : exceptionMessage); |
35 | 27 |
92 </fieldset> | 84 </fieldset> |
93 </div> | 85 </div> |
94 <%}%> | 86 <%}%> |
95 | 87 |
96 <%-- render the dynamic part to feed the state and advance to the next state --%> | 88 <%-- render the dynamic part to feed the state and advance to the next state --%> |
97 <%if (ui != null){%> | 89 <%if (ui != null) { %> |
98 <div id="timeseriesfilter"> | 90 <%= ui.toString().replaceAll(" ", "") %> |
99 <form id="fisSelectionForm" onsubmit="displayOverlay()" action="<%=response.encodeURL("next.do")%>" method="post"> | |
100 <fieldset> | |
101 | |
102 <%-- error message, if user input was not valid --%> | |
103 <%if (exception != null) {%> | |
104 <div class="inputException"><%=exception%></div> | |
105 <%}%> | |
106 <%=ui != null ? ui.toString().replaceAll(" ", "") : "" %> | |
107 | |
108 <%if(furthertargets){%> | |
109 <br/> | |
110 <input style="margin-top: 5px;" type="image" src="<bean:message key="gnviewer.select.button.src"/>"/> | |
111 <%}%> | |
112 </fieldset> | |
113 </form> | |
114 </div> | |
115 <%}%> | 91 <%}%> |
116 | 92 |
117 <%-- render export options if existing for this state --%> | 93 <%-- render export options if existing for this state --%> |
118 <jsp:include page="includes/display_export_inc.jsp"></jsp:include> | 94 <jsp:include page="includes/display_export_inc.jsp"></jsp:include> |
119 | 95 |