Mercurial > dive4elements > gnv-client
annotate gnv/src/main/webapp/WEB-INF/jsp/includes/display_wms_basic_informations.jsp @ 994:541ff0db1b12
Added the informations about how the WMS which was published during the
Workflow to the GUI
gnv/trunk@1195 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 11 Jun 2010 08:08:33 +0000 |
parents | |
children | a433a9174cd2 |
rev | line source |
---|---|
994
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
2 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModel"%> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
3 <%@page import="de.intevation.gnv.artifactdatabase.objects.map.MapService"%> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
4 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
5 <% |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
6 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
7 MapService localMapService = sm.getLocalMapService(); |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
8 Collection<Layer> layer = localMapService.getLayer(); |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
9 %> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
10 |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
11 <%@page import="java.util.Collection"%> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
12 <%@page import="de.intevation.gnv.artifactdatabase.objects.map.Layer"%> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
13 <%@page import="java.util.Iterator"%><div id="wms"> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
14 <table> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
15 <tr> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
16 <td class="parameter"><bean:message key="gnviewer.wms.server.path"/>:</td> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
17 <td class="wmsvalue"><%=localMapService.getURL()%>?SERVICE=WMS&REQUEST=GetCapabilities</td> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
18 </tr> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
19 <tr> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
20 <td class="parameter"><bean:message key="gnviewer.wms.server.layer"/>:</td> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
21 <td class="wmsvalue"> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
22 <%if (layer != null && !layer.isEmpty()){ |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
23 Iterator<Layer> it = layer.iterator(); |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
24 while (it.hasNext()){ |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
25 %> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
26 <%=it.next().getName()+(it.hasNext() ? "," : "")%> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
27 <% } |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
28 }else{%> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
29 <bean:message key="gnviewer.wms.layer.nolayerfound"/> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
30 <%}%> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
31 </td> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
32 </tr> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
33 <tr> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
34 <td class="parameter"><bean:message key="gnviewer.wms.layer.ttl"/>:</td> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
35 <td class="wmsvalue"><%=localMapService.getTtl()%></td> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
36 </tr> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
37 </table> |
541ff0db1b12
Added the informations about how the WMS which was published during the
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
38 </div> |