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"%> ingo@284: <%@page import="java.net.URLEncoder"%> ingo@408: <% ingo@408: // fetch diagramm parameter from request if the user clicked 'draw' ingo@408: Object diagramm = request.getAttribute("diagramm"); ingo@408: SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); ingo@408: ingo@408: String target = "chart"; ingo@408: String mimeType = null; ingo@408: String parameterString = ""; ingo@408: tim@30: boolean supportChart = sm.getOutputMode(target) != null; ingo@408: tim@30: if (supportChart){ ingo@408: mimeType = sm.getOutputMode(target).getMimeType(); tim@30: DiagrammOptions diagrammOptions = sm.getDiagrammOptions(); ingo@408: Collection op = sm.getOutputMode(target).getOutputParameters(); ingo@408: tim@30: if (op != null){ tim@30: Iterator it = op.iterator(); tim@30: while (it.hasNext()){ tim@30: OutputParameter parameter = it.next(); ingo@410: parameterString = parameterString +"&"+parameter.getName()+"="+(diagrammOptions != null ? diagrammOptions.getValue(parameter.getName()): parameter.getValue()); tim@30: } tim@30: } tim@30: } ingo@408: %> ingo@158: ingo@408: <%-- show chart options if output mode 'chart' is supported --%> ingo@408: <% if (supportChart) { %> ingo@408: ingo@408: <%}%> sascha@397: ingo@408: <%-- diagramm is not null if the user clicked the 'draw' button --%> ingo@408: <%if (diagramm != null) { %> ingo@408:
ingo@408: <bean:message key="gnviewer.output.options.diagramm.alt"/> tim@29:
tim@18:
ingo@158: <%}%>