view gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 10:e6c47838eee6

Added "Create Artifact" and "Describe Artifact" to the Testszenario. gnv/trunk@88 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 15 Sep 2009 10:12:56 +0000
parents 65ff6fcfee0c
children 3cb753564552
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">
<select name="artifactFactory">
<%
  SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
  Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories();
  if (artifactFactories != null){
      Iterator<ArtifactObject> it = artifactFactories.iterator();
      while (it.hasNext()){
          ArtifactObject ao = it.next();
      
%>
    
      <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option>
<%
      }
  }
%>
    </select>
    <input type="submit" value="Ausw�hlen" />
</form>
</body>
</html>

http://dive4elements.wald.intevation.org