comparison 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
comparison
equal deleted inserted replaced
10:e6c47838eee6 11:3cb753564552
4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> 4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%>
5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> 5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%>
6 <%@page import="java.util.Iterator"%><html> 6 <%@page import="java.util.Iterator"%><html>
7 <body> 7 <body>
8 <form action="selectArtifactFactory.do" method="post"> 8 <form action="selectArtifactFactory.do" method="post">
9
10 <%
11 Object ui = request.getAttribute("ui");
12 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
13 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories();
14 if (artifactFactories != null && ui == null){
15 %>
9 <select name="artifactFactory"> 16 <select name="artifactFactory">
10 <% 17 <%
11 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
12 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories();
13 if (artifactFactories != null){
14 Iterator<ArtifactObject> it = artifactFactories.iterator(); 18 Iterator<ArtifactObject> it = artifactFactories.iterator();
15 while (it.hasNext()){ 19 while (it.hasNext()){
16 ArtifactObject ao = it.next(); 20 ArtifactObject ao = it.next();
17 21
18 %> 22 %>
19 23
20 <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option> 24 <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option>
21 <% 25 <%
22 } 26 }
23 }
24 %> 27 %>
25 </select> 28 </select>
29 <%
30 }
31 %>
32
33
34 <%=ui != null ? ui.toString() : "" %>
35
26 <input type="submit" value="Auswählen" /> 36 <input type="submit" value="Auswählen" />
27 </form> 37 </form>
28 </body> 38 </body>
29 </html> 39 </html>

http://dive4elements.wald.intevation.org