⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mappreview.jsp

📁 联合国农粮署牵头开发的geonetwork源代码最新版
💻 JSP
字号:
<%@ page contentType="text/html; charset=UTF-8" %><%@ taglib uri="/tags/struts-bean" prefix="bean" %><%@ taglib uri="/tags/struts-html" prefix="html" %><%@ taglib uri="/tags/struts-logic" prefix="logic" %><!---             This JSP expect to have a:                    <form-bean 	    name="mapPreviewForm" 	    type="org.apache.struts.action.DynaActionForm">	    <form-property 	        name="DSNameList"	        type="java.lang.String[]" 	    />	    <form-property 	        name="FTNameList" 	        type="java.lang.String[]" 	    />	    <form-property 	        name="BBoxList" 	        type="java.lang.String[]" 	    />	    </form-bean>		   given to it.  	   The DSNameList list is a list of strings - these are the 	   names of the data stores for the FeatureType.	   The FTNameList is the list of FeatureTypes represented	   as strings.	   The BBoxList contains the bounding box coordinates of 	   the feature type represented as a string.  ---><!-- ALL THIS STUFF TAKEN FROM MAINLAYOUT.JSP --><!------------------------------------------------------------------------><html:html locale="true" xhtml="true">  <head>    <title>      <bean:message key="geoserver.logo"/>      Geoserver    </title>    <meta content="text/html; charset=iso-8859-1" http-equiv="content-type"/>    <meta content="text/css" http-equiv="content-style-type"/>      <meta name="keywords"          content="(GeoServer) (GIS) (Geographic Information Systems)"/>    <meta name="author" content="Brent Owens"/>      <style type="text/css">      <!-- @import url("<html:rewrite forward='style'/>"); -->    </style>      <link type="image/gif" href="<html:rewrite forward='icon'/>" rel="icon"/>    <link href="<html:rewrite forward='favicon'/>" rel="SHORTCUT ICON"/>    <html:base/>  </head>  <body> <table class="page">  <tbody>	<tr class="header">        <td class="gutter">          <span class="project">            <a href="<bean:message key="link.geoserver"/>">              <bean:message key="geoserver.logo"/>            </a>          </span>          <span class="license">            <a href="<bean:message key="link.license"/>">&copy;</a>          </span>		</td>        <td style="width: 1em">        </td>		<td style="vertical-align: bottom; white-space: nowrap;">          <span class="site"><logic:notEmpty name="GeoServer" property="title">              <bean:write name="GeoServer" property="title"/></logic:notEmpty><logic:empty name="GeoServer" property="title">              <bean:message key="message.noTitle"/></logic:empty>                      </span>					</td>			<td style="vertical-align: bottom; white-space: nowrap; text-align: right;">			<span class="contact">			   <a href="<bean:message key="label.credits.url"/>"><bean:message key="label.credits"/></a>			</span><logic:notEmpty name="GeoServer" property="contactParty">            <span class="contact">		              <bean:message key="label.contact"/>: 	              <html:link forward="contact">                <bean:write name="GeoServer" property="contactParty"/>              </html:link>            </span>            </logic:notEmpty>                        </td>	</tr>	</table><!------------------------------------------------------------------------><h1 align="center"> <bean:message key="mapPreview.title"/> </h1><!------------------------------------------------------------------------><!-- DISPLAY THE LIST OF FEATURE TYPES AND THEIR INFORMATION             -><!------------------------------------------------------------------------><table border=1 cellpadding=4 align="center">  <tr><th><B><U>Layer</U> (NameSpace:FeatureType)</B></th><!-- <th><B><U>DataStore</U></B> --><!--bean:message key="mapPreview.tableTitle"/--></th><th><B><U>Preview Map</U></B></th></tr>    <!-- This iterator take idx from 0 to however many items there are in the list.     I use the index to grab the data from the 3 input lists (see above).     The it_value is ignored.  --> <logic:iterate id="it_value" indexId="idx" name="mapPreviewForm" property="DSNameList"> 	<tr >	     <td>				<b>				<a href="../../wms?bbox=<bean:write property='<%= "BBoxList[" + idx + "]" %>' name="mapPreviewForm"/>&styles=&Format=application/openlayers&request=GetMap&layers=<bean:write property='<%= "FTNamespaceList[" + idx + "]" %>' name="mapPreviewForm"/>&width=<bean:write property='<%= "WidthList[" + idx + "]" %>' name="mapPreviewForm"/>&height=<bean:write property='<%= "HeightList[" + idx + "]" %>' name="mapPreviewForm"/>&srs=<bean:write property='<%= "SRSList[" + idx + "]" %>' name="mapPreviewForm"/>" target="_blank"><bean:write property='<%= "FTNamespaceList[" + idx + "]" %>' name="mapPreviewForm"/></a>				</b>	     </td>
	     <!-- 	     <td class="greyedOut2">				 <bean:write property='<%= "DSNameList[" + idx + "]" %>' name="mapPreviewForm"/>	     </td>
	      -->		 <td>			<!-- add link to FTNameList.html -->			<center><b><font size="-1">			<a href="../../wms?bbox=<bean:write property='<%= "BBoxList[" + idx + "]" %>' name="mapPreviewForm"/>&styles=&Format=application/openlayers&request=GetMap&layers=<bean:write property='<%= "FTNamespaceList[" + idx + "]" %>' name="mapPreviewForm"/>&width=<bean:write property='<%= "WidthList[" + idx + "]" %>' name="mapPreviewForm"/>&height=<bean:write property='<%= "HeightList[" + idx + "]" %>' name="mapPreviewForm"/>&srs=<bean:write property='<%= "SRSList[" + idx + "]" %>' name="mapPreviewForm"/>" target="_blank">OpenLayers</a>&nbsp;&nbsp;
			<a href="../../wms/kml_reflect?layers=<bean:write property='<%= "FTNamespaceList[" + idx + "]" %>' name="mapPreviewForm"/>" target="_blank">KML</a>&nbsp;&nbsp;
			<logic:greaterEqual property='<%= "CoverageStatus[" + idx + "]" %>' name="mapPreviewForm" value="1">
				<a href="../../wms?bbox=<bean:write property='<%= "BBoxList[" + idx + "]" %>' name="mapPreviewForm"/>&styles=&Format=application/rss%2Bxml&request=GetMap&layers=<bean:write property='<%= "FTNamespaceList[" + idx + "]" %>' name="mapPreviewForm"/>&width=<bean:write property='<%= "WidthList[" + idx + "]" %>' name="mapPreviewForm"/>&height=<bean:write property='<%= "HeightList[" + idx + "]" %>' name="mapPreviewForm"/>&srs=<bean:write property='<%= "SRSList[" + idx + "]" %>' name="mapPreviewForm"/>" target="_blank">GeoRSS</a>&nbsp;&nbsp;
			</logic:greaterEqual>
			<logic:equal property='<%= "CoverageStatus[" + idx + "]" %>' name="mapPreviewForm" value="0">
			    <font color="gray">GeoRSS&nbsp;&nbsp;</font>
			</logic:equal>
			<logic:equal property='<%= "CoverageStatus[" + idx + "]" %>' name="mapPreviewForm" value="2">
				<a href="../../wms?bbox=<bean:write property='<%= "BBoxList[" + idx + "]" %>' name="mapPreviewForm"/>&styles=&Format=application/pdf&request=GetMap&layers=<bean:write property='<%= "FTNamespaceList[" + idx + "]" %>' name="mapPreviewForm"/>&width=<bean:write property='<%= "WidthList[" + idx + "]" %>' name="mapPreviewForm"/>&height=<bean:write property='<%= "HeightList[" + idx + "]" %>' name="mapPreviewForm"/>&srs=<bean:write property='<%= "SRSList[" + idx + "]" %>' name="mapPreviewForm"/>" target="_blank">PDF</a>&nbsp;&nbsp;
				<a href="../../wms?bbox=<bean:write property='<%= "BBoxList[" + idx + "]" %>' name="mapPreviewForm"/>&styles=&Format=image/svg%2Bxml&request=GetMap&layers=<bean:write property='<%= "FTNamespaceList[" + idx + "]" %>' name="mapPreviewForm"/>&width=<bean:write property='<%= "WidthList[" + idx + "]" %>' name="mapPreviewForm"/>&height=<bean:write property='<%= "HeightList[" + idx + "]" %>' name="mapPreviewForm"/>&srs=<bean:write property='<%= "SRSList[" + idx + "]" %>' name="mapPreviewForm"/>" target="_blank">SVG</a>
			</logic:equal>
			<logic:notEqual property='<%= "CoverageStatus[" + idx + "]" %>' name="mapPreviewForm" value="2">
			    <font color="gray">PDF&nbsp;&nbsp;</font>
			    <font color="gray">SVG</font>
			</logic:notEqual>
			
			</font>
			</b></center>		 </td>	</tr></logic:iterate></table></body></html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -