diff gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 12:4ebe57b170d3

Integration of moving through the Artifact-States and rendering the UI. gnv/trunk@91 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 16 Sep 2009 07:44:26 +0000
parents 3cb753564552
children 4ef6e4e9ef15
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/index.jsp	Tue Sep 15 14:19:55 2009 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/index.jsp	Wed Sep 16 07:44:26 2009 +0000
@@ -4,11 +4,14 @@
 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%>
 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%>
 <%@page import="java.util.Iterator"%><html>
+<%Object ui = request.getAttribute("ui");
+  String action = (ui == null ? "selectArtifactFactory.do" : "next.do");
+%>
 <body>
-<form action="selectArtifactFactory.do" method="post">
+<form action="<%=action%>" method="post">
 
 <%
-  Object ui = request.getAttribute("ui");
+  
   SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
   Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories();
   if (artifactFactories != null && ui == null){

http://dive4elements.wald.intevation.org