Mercurial > dive4elements > gnv-client
annotate gnv/src/main/webapp/WEB-INF/jsp/index.jsp @ 8:65ff6fcfee0c
Some Basic Stuff for WebProjects
gnv/trunk@84 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 14 Sep 2009 13:56:03 +0000 |
parents | 72951b955f00 |
children | 3cb753564552 |
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> |
4
72951b955f00
Basic Struts-Infrastructur Added
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
7 <body> |
8
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
8 <form action="selectArtifactFactory.do" method="post"> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
9 <select name="artifactFactory"> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
10 <% |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
11 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
12 Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories(); |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
13 if (artifactFactories != null){ |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
14 Iterator<ArtifactObject> it = artifactFactories.iterator(); |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
15 while (it.hasNext()){ |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
16 ArtifactObject ao = it.next(); |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
17 |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
18 %> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
19 |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
20 <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
|
21 <% |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
22 } |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
23 } |
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 </select> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
26 <input type="submit" value="Ausw�hlen" /> |
65ff6fcfee0c
Some Basic Stuff for WebProjects
Tim Englich <tim.englich@intevation.de>
parents:
4
diff
changeset
|
27 </form> |
4
72951b955f00
Basic Struts-Infrastructur Added
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
28 </body> |
72951b955f00
Basic Struts-Infrastructur Added
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
29 </html> |