Mercurial > dive4elements > gnv-client
view gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 11:3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
gnv/trunk@90 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 15 Sep 2009 14:19:55 +0000 |
parents | 65ff6fcfee0c |
children | 4ebe57b170d3 |
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> <body> <form action="selectArtifactFactory.do" method="post"> <% Object ui = request.getAttribute("ui"); 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>