diff gnv/src/main/webapp/WEB-INF/jsp/includes/display_diagramm_inc.jsp @ 22:367a00e4b9ad

Some GUI-Improvements done gnv/trunk@117 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 23 Sep 2009 15:17:32 +0000
parents 87002cbd194c
children bba8fd97e549
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/includes/display_diagramm_inc.jsp	Wed Sep 23 15:04:39 2009 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/includes/display_diagramm_inc.jsp	Wed Sep 23 15:17:32 2009 +0000
@@ -1,6 +1,11 @@
-<%Object diagramm = request.getAttribute("diagramm");%>
-<%if (diagramm != null){ %>
+<%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%>
+<%Object diagramm = request.getAttribute("diagramm");
+if (diagramm != null){
+    String mimeType = "image/png";// TODO: get from SessionModel SessionModelFactory.getInstance().getSessionModel(request).
+    String target = "chart"; // TODO: get from SessionModel
+    %>
+    
     <div id="diagram">
-        <%=diagramm.toString()%>
+        <img src='<%=response.encodeURL("out.do?mimetype="+mimeType+"&target="+target+"&uid="+System.currentTimeMillis())%>' alt='Chart'>
     </div>
 <%}%>
\ No newline at end of file

http://dive4elements.wald.intevation.org