comparison 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
comparison
equal deleted inserted replaced
11:3cb753564552 12:4ebe57b170d3
2 <%@page import="java.util.Collection"%> 2 <%@page import="java.util.Collection"%>
3 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> 3 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%>
4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> 4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%>
5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> 5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%>
6 <%@page import="java.util.Iterator"%><html> 6 <%@page import="java.util.Iterator"%><html>
7 <%Object ui = request.getAttribute("ui");
8 String action = (ui == null ? "selectArtifactFactory.do" : "next.do");
9 %>
7 <body> 10 <body>
8 <form action="selectArtifactFactory.do" method="post"> 11 <form action="<%=action%>" method="post">
9 12
10 <% 13 <%
11 Object ui = request.getAttribute("ui"); 14
12 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); 15 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
13 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories(); 16 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories();
14 if (artifactFactories != null && ui == null){ 17 if (artifactFactories != null && ui == null){
15 %> 18 %>
16 <select name="artifactFactory"> 19 <select name="artifactFactory">

http://dive4elements.wald.intevation.org