Project

General

Profile

1
<%@ page contentType="text/html; charset=UTF-8" %>
2
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
3
<%@ taglib uri="/tags/struts-html" prefix="html" %>
4
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
5

    
6
<!---   
7
          This JSP expect to have a:
8
          
9
          <form-bean 
10
	    name="mapPreviewForm" 
11
	    type="org.apache.struts.action.DynaActionForm">
12
	    <form-property 
13
	        name="DSNameList"
14
	        type="java.lang.String[]" 
15
	    />
16
	    <form-property 
17
	        name="FTNameList" 
18
	        type="java.lang.String[]" 
19
	    />
20
	    <form-property 
21
	        name="BBoxList" 
22
	        type="java.lang.String[]" 
23
	    />
24
	    </form-bean>
25
	
26
	   given to it.  
27
	   The DSNameList list is a list of strings - these are the 
28
	   names of the data stores for the FeatureType.
29
	   The FTNameList is the list of FeatureTypes represented
30
	   as strings.
31
	   The BBoxList contains the bounding box coordinates of 
32
	   the feature type represented as a string.
33
  --->
34

    
35
<!-- ALL THIS STUFF TAKEN FROM MAINLAYOUT.JSP -->
36
<!------------------------------------------------------------------------>
37
<html:html locale="true" xhtml="true">
38
  <head>
39
    <title>
40
      <bean:message key="geoserver.logo"/>
41
      Geoserver
42
    </title>
43
    <meta content="text/html; charset=iso-8859-1" http-equiv="content-type"/>
44
    <meta content="text/css" http-equiv="content-style-type"/>  
45
    <meta name="keywords"
46
          content="(GeoServer) (GIS) (Geographic Information Systems)"/>
47
    <meta name="author" content="Brent Owens"/>
48
  
49
    <style type="text/css">
50
      <!-- @import url("<html:rewrite forward='style'/>"); -->
51
    </style>
52
  
53
    <link type="image/gif" href="<html:rewrite forward='icon'/>" rel="icon"/>
54
    <link href="<html:rewrite forward='favicon'/>" rel="SHORTCUT ICON"/>
55
    <html:base/>
56
  </head>
57
  <body>
58
 <table class="page">
59
  <tbody>
60
	<tr class="header">
61
        <td class="gutter">
62
          <span class="project">
63
            <a href="<bean:message key="link.geoserver"/>">
64
              <bean:message key="geoserver.logo"/>
65
            </a>
66
          </span>
67
          <span class="license">
68
            <a href="<bean:message key="link.license"/>">&copy;</a>
69
          </span>
70
		</td>
71
        <td style="width: 1em">
72
        </td>
73
		<td style="vertical-align: bottom; white-space: nowrap;">
74
          <span class="site">
75
<logic:notEmpty name="GeoServer" property="title">
76
              <bean:write name="GeoServer" property="title"/>
77
</logic:notEmpty>
78
<logic:empty name="GeoServer" property="title">
79
              <bean:message key="message.noTitle"/>
80
</logic:empty>            
81
          </span>			
82
		</td>	
83
		<td style="vertical-align: bottom; white-space: nowrap; text-align: right;">
84
			<span class="contact">
85
			   <a href="<bean:message key="label.credits.url"/>"><bean:message key="label.credits"/></a>
86
			</span>
87
<logic:notEmpty name="GeoServer" property="contactParty">
88
            <span class="contact">		
89
              <bean:message key="label.contact"/>: 	
90
              <html:link forward="contact">
91
                <bean:write name="GeoServer" property="contactParty"/>
92
              </html:link>
93
            </span>            
94
</logic:notEmpty>                
95
        </td>
96
	</tr>
97
	</table>
98
<!------------------------------------------------------------------------>
99

    
100
<h1> <bean:message key="mapPreview.title"/> </h1>
101

    
102
<!------------------------------------------------------------------------>
103
<!-- DISPLAY THE LIST OF FEATURE TYPES AND THEIR INFORMATION             ->
104
<!------------------------------------------------------------------------>
105

    
106

    
107
<table border=1 width=90%>
108

    
109
  <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>
110
  
111
  
112
<!-- This iterator take idx from 0 to however many items there are in the list.
113
     I use the index to grab the data from the 3 input lists (see above).
114
     The it_value is ignored.
115
  -->
116
 <logic:iterate id="it_value" indexId="idx" name="mapPreviewForm" property="DSNameList">
117
 
118
	<tr >
119
	     <td width=30%>
120
				<center><b>
121
				<a href="../../preview/<bean:write property="<%= "FTNameList[" + idx + "]" %>" name="mapPreviewForm"/>.html" target="_blank"><bean:write property="<%= "FTNamespaceList[" + idx + "]" %>" name="mapPreviewForm"/></a>
122
				</b></center>
123
	     </td>
124
	     <td class="greyedOut2" width=15%>
125
				 <center><bean:write property="<%= "DSNameList[" + idx + "]" %>" name="mapPreviewForm"/></center>
126
	     </td>
127
	<!--td class="greyedOut2" width=45%>
128
	
129
				<b>MinX, MinY, MaxX, MaxY</b><br>
130
				<bean:write property="<%= "BBoxList[" + idx + "]" %>" name="mapPreviewForm"/>
131
		 </td-->
132
		 <td width=10%>
133
			<!-- add link to FTNameList.html -->
134
			<center><b>
135
			<a href="../../preview/<bean:write property="<%= "FTNameList[" + idx + "]" %>" name="mapPreviewForm"/>.html" target="_blank">Preview</a>
136
			
137
			</b></center>
138
		 </td>
139
	</tr>
140
</logic:iterate>
141
</table>
142

    
143
</body>
144
</html:html>
(19-19/26)