comparison gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 581:f0f0d4eaee58

Display chart when reaching a final state which doesn't need any further user input (issue184). gnv/trunk@722 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 02 Mar 2010 09:02:31 +0000
parents f2ba58011a2d
children b31e81f35b64
comparison
equal deleted inserted replaced
580:377da78ed36b 581:f0f0d4eaee58
2 <%@page import="java.util.Collection"%> 2 <%@page import="java.util.Collection"%>
3 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> 3 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%>
4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> 4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%>
5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> 5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%>
6 <%@page import="java.util.Iterator"%> 6 <%@page import="java.util.Iterator"%>
7 <% Object ui = request.getAttribute("ui"); 7 <%
8 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
9 Object ui = request.getAttribute("ui");
8 Object staticui = request.getAttribute("staticui"); 10 Object staticui = request.getAttribute("staticui");
9 Object chart = request.getAttribute("chart"); 11 Object chart = request.getAttribute("chart");
10 Object statistic = request.getAttribute("statistic"); 12 Object statistic = request.getAttribute("statistic");
11 Object histogram = request.getAttribute("histogram"); 13 Object histogram = request.getAttribute("histogram");
12 Object wms = request.getAttribute("wms"); 14 Object wms = request.getAttribute("wms");
13 boolean furthertargets = true; 15 boolean furthertargets = true;
16
17 if (chart == null && statistic == null && histogram == null && wms == null) {
18 boolean supportChart = sm.getOutputMode("chart") != null;
19 if (supportChart) {
20 chart = "true";
21 }
22 }
14 23
15 Object furthertargetsObject = request.getAttribute("furthertargets"); 24 Object furthertargetsObject = request.getAttribute("furthertargets");
16 if (furthertargetsObject != null){ 25 if (furthertargetsObject != null){
17 furthertargets = ((Boolean)furthertargetsObject).booleanValue(); 26 furthertargets = ((Boolean)furthertargetsObject).booleanValue();
18 } 27 }

http://dive4elements.wald.intevation.org