ingo@1022: <%-- ingo@1022: Copyright (c) 2010 by Intevation GmbH ingo@1022: ingo@1022: This program is free software under the LGPL (>=v2.1) ingo@1022: Read the file LGPL.txt coming with the software for details ingo@1022: or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1022: --%> ingo@1022: ingo@569: <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> ingo@569: <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean-el" prefix="bean-el" %> ingo@569: <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> ingo@569: <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> ingo@574: <%@page import="de.intevation.gnv.action.sessionmodel.DiagrammOptions"%> ingo@574: <%@page import="de.intevation.gnv.artifactdatabase.objects.OutputParameter"%> ingo@574: <%@page import="java.util.Collection"%> ingo@574: <%@page import="java.util.Iterator"%> ingo@569: <% ingo@569: SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); ingo@569: ingo@574: String parameterString = ""; ingo@574: String target = "histogram"; ingo@574: String mimeType = sm.getOutputMode(target).getMimeType(); ingo@574: ingo@574: DiagrammOptions diagrammOptions = sm.getDiagrammOptions(); ingo@574: Collection op = sm.getOutputMode(target).getOutputParameters(); ingo@574: ingo@574: if (op != null){ ingo@574: Iterator it = op.iterator(); ingo@574: while (it.hasNext()){ ingo@574: OutputParameter parameter = it.next(); ingo@574: parameterString = parameterString +"&"+parameter.getName()+"="+(diagrammOptions != null ? diagrammOptions.getValue(parameter.getName()): parameter.getValue()); ingo@574: } ingo@575: ingo@575: parameterString += "&bintype="+request.getAttribute("bintype"); ingo@574: } ingo@569: %> ingo@569: ingo@569:
ingo@583: <bean:message key="gnviewer.output.options.histogram.alt"/> ingo@569: