tim@18: <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> ingo@665: <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean-el" prefix="bean-el" %> tim@8: <%@page import="java.util.Collection"%> tim@8: <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> ingo@665: <%@page import="de.intevation.gnv.action.CommunicationKeys"%> tim@8: <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> tim@8: <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> tim@16: <%@page import="java.util.Iterator"%> ingo@581: <% ingo@665: String exception = (String)request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_INPUT_ID); ingo@581: SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); ingo@581: Object ui = request.getAttribute("ui"); ingo@408: Object staticui = request.getAttribute("staticui"); ingo@571: Object chart = request.getAttribute("chart"); ingo@410: Object statistic = request.getAttribute("statistic"); ingo@569: Object histogram = request.getAttribute("histogram"); ingo@570: Object wms = request.getAttribute("wms"); ingo@408: boolean furthertargets = true; ingo@581: ingo@581: if (chart == null && statistic == null && histogram == null && wms == null) { ingo@581: boolean supportChart = sm.getOutputMode("chart") != null; ingo@581: if (supportChart) { ingo@581: chart = "true"; ingo@581: } ingo@581: } tim@17: ingo@408: Object furthertargetsObject = request.getAttribute("furthertargets"); ingo@408: if (furthertargetsObject != null){ ingo@408: furthertargets = ((Boolean)furthertargetsObject).booleanValue(); ingo@408: } ingo@694: ingo@694: Object exceptionMessage = request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID); ingo@694: exceptionMessage = (exceptionMessage != null ? exceptionMessage.toString().replaceAll(" ", ".").replaceAll(":",".").toLowerCase() : null); ingo@694: exceptionMessage = (exceptionMessage != null && exceptionMessage.toString().endsWith(".") ? exceptionMessage.toString().substring(0,exceptionMessage.toString().length()-1) : exceptionMessage); ingo@694: ingo@694: boolean showmapviewercallBody = request.getAttribute("MAPVIEWERCALL") != null; ingo@694: ingo@694: String exceptionProject = (String) request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_PROJECT); ingo@694: exceptionProject = exceptionProject != null ? exceptionProject.toLowerCase() : null; ingo@694: exceptionProject = exceptionProject != null ? exceptionProject.replaceAll(" ", ".") : null; tim@12: %> ingo@694: ingo@694: <%-- div container for project loading/saving and error messages related to this --%> ingo@694:
ingo@695: ingo@694: ingo@695: ingo@695: ingo@694: ingo@694:
ingo@695: "> ingo@695: | ingo@695: ingo@694: ingo@695:
ingo@695:
" method="post" enctype="multipart/form-data"> ingo@695: "/> ingo@695: ingo@695:
ingo@695:
ingo@694:
ingo@694: <%if (exceptionProject != null) {%> ingo@694:
ingo@694: ingo@694:
ingo@694: "> ingo@694: ingo@694: ingo@694:
ingo@694: <%}%> ingo@694: ingo@694:
ingo@694: <%if (showmapviewercallBody){ %> ingo@694: ingo@694: <%}%> ingo@694:
ingo@694:
ingo@694: <%if (exceptionMessage != null){ %> ingo@694: ingo@694:

ingo@694: "> ingo@694: ingo@694: ingo@694:

ingo@694: <%}%> ingo@694:
ingo@694: ingo@694: <%-- the parameter panel is following --%> ingo@694:
ingo@400: <%if (staticui == null){ %> ingo@400: ingo@400: <%} else {%> ingo@411:
ingo@411:
ingo@411: ingo@411: <%=staticui.toString()%> ingo@411:
ingo@411:
tim@18: <%}%> tim@18: ingo@408: <%-- render the dynamic part to feed the state and advance to the next state --%> ingo@665: <%if (ui != null){%> ingo@665:
ingo@413:
" method="post"> ingo@408:
ingo@665: ingo@665: <%-- error message, if user input was not valid --%> ingo@665: <%if (exception != null) {%> ingo@665:
<%=exception%>
ingo@665: <%}%> ingo@408: <%=ui != null ? ui.toString().replaceAll(" ", "") : "" %> ingo@408: ingo@408: <%if(furthertargets){%> ingo@696: "/> ingo@408: <%}%> ingo@408:
ingo@408:
ingo@408:
tim@18: <%}%> ingo@408: ingo@694: <%-- render export options if existing for this state --%> ingo@694: ingo@694: ingo@694: <%if (chart != null) {%> ingo@694: ingo@694: <%}%> ingo@694: ingo@694: ingo@694: <%if (histogram != null) {%> ingo@694: ingo@694: <%}%> ingo@694: ingo@694: <%-- render wms options --%> ingo@694: <%if (wms != null) {%> ingo@694: ingo@694: <%}%> ingo@694:
ingo@571: ingo@571: <%if (chart != null) {%> ingo@408: <%-- render chart options if existing for this state --%> ingo@400: ingo@571: <%}%> ingo@410: ingo@410: <%-- render statistic --%> ingo@410: <%if (statistic != null) {%> ingo@410: ingo@410: <%}%> ingo@569: ingo@569: <%-- render histogram --%> ingo@569: <%if (histogram != null) {%> ingo@569: ingo@569: <%}%>