Mercurial > dive4elements > gnv-client
view 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 source
<%@page import="java.util.Collection"%> <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> <%@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="<%=action%>" method="post"> <% SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories(); if (artifactFactories != null && ui == null){ %> <select name="artifactFactory"> <% Iterator<ArtifactObject> it = artifactFactories.iterator(); while (it.hasNext()){ ArtifactObject ao = it.next(); %> <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option> <% } %> </select> <% } %> <%=ui != null ? ui.toString() : "" %> <input type="submit" value="Ausw�hlen" /> </form> </body> </html>