Project

General

Profile

1
<%@ page language="java" %>
2
<%@ page import="java.util.Set,java.util.Map,java.util.Vector,edu.ucsb.nceas.utilities.PropertiesMetaData" %>
3
<%@ page import="edu.ucsb.nceas.utilities.MetaDataGroup,edu.ucsb.nceas.utilities.MetaDataProperty" %>
4
<% 
5
/**
6
 *  '$RCSfile$'
7
 *    Copyright: 2008 Regents of the University of California and the
8
 *               National Center for Ecological Analysis and Synthesis
9
 *  For Details: http://www.nceas.ucsb.edu/
10
 *
11
 *   '$Author: daigle $'
12
 *     '$Date: 2008-07-29 10:31:02 -0700 (Tue, 29 Jul 2008) $'
13
 * '$Revision: 4176 $'
14
 * 
15
 * This program is free software; you can redistribute it and/or modify
16
 * it under the terms of the GNU General Public License as published by
17
 * the Free Software Foundation; either version 2 of the License, or
18
 * (at your option) any later version.
19
 *
20
 * This program is distributed in the hope that it will be useful,
21
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 * GNU General Public License for more details.
24
 *
25
 * You should have received a copy of the GNU General Public License
26
 * along with this program; if not, write to the Free Software
27
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
 */
29
%>
30

    
31
<html>
32
<head>
33

    
34
<title>Geoserver Configuration</title>
35
<%@ include file="./head-section.jsp"%>
36
</head>
37
<body>
38
<%@ include file="./header-section.jsp"%>
39

    
40
<div class="document">
41
	<h2>Geoserver Configuration</h2>
42
	
43
	<p>
44
		Configure the Geoserver data directory, context and admin password. 
45
		The default data directory is located within the Metacat deployment.
46
		The context is assumed to be a sibling of your Metacat web application.
47
		Geoserver can further be customized by navigating to the Geoserver context and logging in as the admin user.
48
	</p>
49
	<!-- MCD TODO add geoserver instructions page -->
50
	<br clear="right"/>
51
	
52
	<%@ include file="page-message-section.jsp"%>
53
	
54
	<form method="POST" name="configuration_form" action="<%= request.getContextPath() %>/admin" 
55
	                                        onsubmit="return submitForm(this);">
56
	
57
		<h3>Geoserver Password Configuration</h3>
58
		
59
		<div class="form-row">
60
			<div class="textinput-label"><label for="geoserver.context" title="Geoserver data directory">Geoserver Data Directory</label></div>
61
			<input class="textinput" id="geoserver.GEOSERVER_DATA_DIR" 
62
					name="geoserver.GEOSERVER_DATA_DIR" 	             		    	    	           		    	             			
63
					value="<%= request.getAttribute("geoserver.GEOSERVER_DATA_DIR") %>"/> 
64
			<i class="icon-question-sign" onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GEOSERVER_DATA_DIR')"></i>
65
		</div>
66
		<div class="form-row">
67
			<div class="textinput-label"><label for="spatial.regenerateCacheOnRestart" title="Regenerate spatial cache">Regenerate spatial cache</label></div>
68
	
69
			<%
70
			boolean regenerate = (Boolean) request.getAttribute("spatial.regenerateCacheOnRestart");
71
			if (regenerate) { 
72
			%>
73
			<input type="checkbox" class="textinput" id="spatial.regenerateCacheOnRestart" 
74
					name="spatial.regenerateCacheOnRestart" 	             		    	    	           		    	             			
75
					value="true"
76
					checked="checked"/>
77
			<% } else {%>
78
			<input type="checkbox" class="textinput" id="spatial.regenerateCacheOnRestart" 
79
					name="spatial.regenerateCacheOnRestart" 	             		    	    	           		    	             			
80
					value="true"/>
81
			<% } %>
82
			<i class="icon-question-sign" onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GEOSERVER_REGENERATE_CACHE')"></i>
83
		</div>
84
		<div class="form-row">
85
			<div class="textinput-label"><label for="geoserver.context" title="Geoserver context">Context</label></div>
86
			<input class="textinput" id="geoserver.context" 
87
					name="geoserver.context" 	             		    	    	           		    	             			
88
					value="<%= request.getAttribute("geoserver.context") %>"/> 
89
			<i class="icon-question-sign" onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GeoserverContext')"></i>
90
		</div>
91
	
92
		<div class="form-row">
93
					<div class="textinput-label"><label for="geoserver.username" title="Geoserver user name">User Name</label></div>
94
					<input class="textinput" id="geoserver.username" 
95
						   name="geoserver.username" readonly="readonly" 		    	    	           		    	             			
96
		           		   value="<%= request.getAttribute("geoserver.username") %>"/> 
97
					<i class="icon-question-sign" onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GeoserverUpdatePassword')"></i>
98
		</div>
99
		<div class="form-row">
100
					<div class="textinput-label"><label for="geoserver.password" title="Geoserver user name">Password</label></div>
101
					<input class="textinput"  id="geoserver.password" 
102
						   name="geoserver.password" 
103
						   type="password"	             		    	    	           		    	             			
104
		           		   value="<%= request.getAttribute("geoserver.password") %>"/> 
105
					<i class="icon-question-sign" onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GeoserverUpdatePassword')"></i>
106
		</div>
107
		<div class="buttons-wrapper">
108
			<input type="hidden" name="configureType" value="geoserver"/>
109
			<input type="hidden" name="processForm" value="true"/>
110
			<input class=button type="submit" value="Update"/>
111
			<input class=button type="button" value="Bypass" onClick="forward('./admin?configureType=geoserver&bypass=true&processForm=true')">
112
			<input class=button type="button" value="Cancel" onClick="forward('./admin')"> 
113
		</div>
114
	</form>
115
</div>
116

    
117
<%@ include file="./footer-section.jsp"%>
118

    
119
</body>
120
</html>
(10-10/20)