view gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 14:9719cbd1a23f

Import of MainLayout, Styles, images and Scripts from old System Revision: 3101 Does not compile gnv/trunk@97 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 16 Sep 2009 13:03:38 +0000
parents 4ebe57b170d3
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>

http://dive4elements.wald.intevation.org