tim@29: <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> tim@22: <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> tim@30: <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> tim@30: <%@page import="de.intevation.gnv.action.sessionmodel.DiagrammOptions"%> tim@30: <%@page import="de.intevation.gnv.artifactdatabase.objects.OutputParameter"%> tim@30: <%@page import="java.util.Collection"%> tim@30: <%@page import="java.util.Iterator"%> tim@22: <%Object diagramm = request.getAttribute("diagramm"); tim@30: SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); tim@22: if (diagramm != null){ tim@29: String target = "chart"; tim@29: String targetCSV = "csv"; tim@30: boolean supportChart = sm.getOutputMode(target) != null; tim@30: boolean supportCSV = sm.getOutputMode(targetCSV) != null; tim@30: String mimeType = null; tim@30: String parameterString = ""; tim@30: if (supportChart){ tim@30: mimeType = sm.getOutputMode(target).getMimeType(); tim@30: DiagrammOptions diagrammOptions = sm.getDiagrammOptions(); tim@30: Collection op = sm.getOutputMode(target).getOutputParameters(); tim@30: if (op != null){ tim@30: Iterator it = op.iterator(); tim@30: while (it.hasNext()){ tim@30: OutputParameter parameter = it.next(); tim@30: parameterString = parameterString +"&"+parameter.getName()+"="+(diagrammOptions != null ? diagrammOptions.getValue(parameter.getName()): parameter.getValue()); tim@30: } tim@30: } tim@30: } tim@30: String mimeTypeCSV = null; tim@30: if (supportCSV){ tim@30: mimeTypeCSV = sm.getOutputMode(targetCSV).getMimeType(); tim@30: } tim@29: %> tim@30:
tim@30: <bean:message key="gnviewer.output.options.diagramm.alt"/> tim@29:
tim@29:
tim@30: "> tim@29: tim@29: tim@29: <%if (supportCSV) { %> tim@31: "> tim@29: tim@29: tim@29: <%}%> tim@29:
tim@30: tim@18:
tim@18: <%}%>