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: 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: <%-- diagramm is not null if the user clicked the 'draw' button --%> ingo@571:
ingo@583: <bean:message key="gnviewer.output.options.diagramm.alt"/> ingo@571:
ingo@571: