tim@8: tim@8: <%@page import="java.util.Collection"%> tim@8: <%@page import="de.intevation.gnv.artifactdatabase.objects.ArtifactObject"%> tim@8: <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> tim@8: <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> tim@8: <%@page import="java.util.Iterator"%><html> tim@4: <body> tim@8: <form action="selectArtifactFactory.do" method="post"> tim@8: <select name="artifactFactory"> tim@8: <% tim@8: SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); tim@8: Collection<ArtifactObject> artifactFactories = sm.getArtifactFactories(); tim@8: if (artifactFactories != null){ tim@8: Iterator<ArtifactObject> it = artifactFactories.iterator(); tim@8: while (it.hasNext()){ tim@8: ArtifactObject ao = it.next(); tim@8: tim@8: %> tim@8: tim@8: <option value="<%=ao.getId()%>" <%=(ao.isSelected() ? "selected=\"selected\"" : "")%> ><%=ao.getName()%></option> tim@8: <% tim@8: } tim@8: } tim@8: %> tim@8: </select> tim@8: <input type="submit" value="Ausw�hlen" /> tim@8: </form> tim@4: </body> tim@4: </html>