diff 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 diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/index.jsp	Tue Sep 15 10:12:56 2009 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/index.jsp	Tue Sep 15 14:19:55 2009 +0000
@@ -6,11 +6,15 @@
 <%@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">
 <%
-  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();
@@ -20,9 +24,15 @@
       <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option>
 <%
       }
-  }
 %>
     </select>
+<%
+}
+%>
+
+    
+    <%=ui != null ? ui.toString() : "" %>
+    
     <input type="submit" value="Auswählen" />
 </form>
 </body>

http://dive4elements.wald.intevation.org