Mercurial > dive4elements > gnv-client
annotate 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 |
rev | line source |
---|---|
8
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
1 |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
2 <%@page import="java.util.Collection"%> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
3 <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
5 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
6 <%@page import="java.util.Iterator"%><html> |
12
4ebe57b170d3
Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents:
11
diff
changeset
|
7 <%Object ui = request.getAttribute("ui"); |
4ebe57b170d3
Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents:
11
diff
changeset
|
8 String action = (ui == null ? "selectArtifactFactory.do" : "next.do"); |
4ebe57b170d3
Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents:
11
diff
changeset
|
9 %> |
4
72951b955f00
Basic Struts-Infrastructur Added
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
10 <body> |
12
4ebe57b170d3
Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents:
11
diff
changeset
|
11 <form action="<%=action%>" method="post"> |
11
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
12 |
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
13 <% |
12
4ebe57b170d3
Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents:
11
diff
changeset
|
14 |
11
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
15 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); |
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
16 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories(); |
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
17 if (artifactFactories != null && ui == null){ |
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
18 %> |
8
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
19 <select name="artifactFactory"> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
20 <% |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
21 Iterator<ArtifactObject> it = artifactFactories.iterator(); |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
22 while (it.hasNext()){ |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
23 ArtifactObject ao = it.next(); |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
24 |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
25 %> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
26 |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
27 <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
28 <% |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
29 } |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
30 %> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
31 </select> |
11
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
32 <% |
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
33 } |
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
34 %> |
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
35 |
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
36 |
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
37 <%=ui != null ? ui.toString() : "" %> |
3cb753564552
Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
8
diff
changeset
|
38 |
8
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
39 <input type="submit" value="Ausw�hlen" /> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
40 </form> |
4
72951b955f00
Basic Struts-Infrastructur Added
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
41 </body> |
72951b955f00
Basic Struts-Infrastructur Added
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
42 </html> |