Project

General

Profile

1 4204 daigle
<%@ 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
<link rel="stylesheet" type="text/css"
36
        href="<%= request.getContextPath() %>/admin/admin.css"></link>
37
<script language="JavaScript" type="text/JavaScript" src="<%= request.getContextPath() %>/admin/admin.js"></script>
38
39
</head>
40
<body>
41 4557 daigle
<%@ include file="./header-section.jsp"%>
42
43 8203 walker
<img src="<%= request.getContextPath() %>/metacat-logo-darkgray.png" width="100px" align="right"/>
44 4258 daigle
<h2>Geoserver Configuration</h2>
45 4204 daigle
46 5877 leinfelder
<p>
47
	Configure the Geoserver data directory, context and admin password.
48 5879 leinfelder
	The default data directory is located within the Metacat deployment.
49 5877 leinfelder
	The context is assumed to be a sibling of your Metacat web application.
50
	Geoserver can further be customized by navigating to the Geoserver context and logging in as the admin user.
51 4204 daigle
</p>
52
<!-- MCD TODO add geoserver instructions page -->
53
<br clear="right"/>
54
55
<%@ include file="page-message-section.jsp"%>
56
57
<form method="POST" name="configuration_form" action="<%= request.getContextPath() %>/admin"
58
                                        onsubmit="return submitForm(this);">
59
60
	<h3>Geoserver Password Configuration</h3>
61 4258 daigle
62
	<div class="form-row">
63 5847 leinfelder
		<div class="textinput-label"><label for="geoserver.context" title="Geoserver data directory">Geoserver Data Directory</label></div>
64
		<input class="textinput" id="geoserver.GEOSERVER_DATA_DIR"
65
				name="geoserver.GEOSERVER_DATA_DIR"
66
				value="<%= request.getAttribute("geoserver.GEOSERVER_DATA_DIR") %>"/>
67 8203 walker
		<img class="question-mark" src="style/images/help.png"
68
			onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GEOSERVER_DATA_DIR')"/>
69 5847 leinfelder
	</div>
70
	<div class="form-row">
71 6126 leinfelder
		<div class="textinput-label"><label for="spatial.regenerateCacheOnRestart" title="Regenerate spatial cache">Regenerate spatial cache</label></div>
72
73
		<%
74
		boolean regenerate = (Boolean) request.getAttribute("spatial.regenerateCacheOnRestart");
75
		if (regenerate) {
76
		%>
77
		<input type="checkbox" class="textinput" id="spatial.regenerateCacheOnRestart"
78
				name="spatial.regenerateCacheOnRestart"
79
				value="true"
80
				checked="checked"/>
81
		<% } else {%>
82
		<input type="checkbox" class="textinput" id="spatial.regenerateCacheOnRestart"
83
				name="spatial.regenerateCacheOnRestart"
84
				value="true"/>
85
		<% } %>
86 8203 walker
		<img class="question-mark" src="style/images/help.png"
87
			onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GEOSERVER_REGENERATE_CACHE')"/>
88 6126 leinfelder
	</div>
89
	<div class="form-row">
90 5847 leinfelder
		<div class="textinput-label"><label for="geoserver.context" title="Geoserver context">Context</label></div>
91
		<input class="textinput" id="geoserver.context"
92
				name="geoserver.context"
93
				value="<%= request.getAttribute("geoserver.context") %>"/>
94 8203 walker
		<img class="question-mark" src="style/images/help.png"
95
			onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GeoserverContext')"/>
96 5847 leinfelder
	</div>
97 8203 walker
98 5847 leinfelder
	<div class="form-row">
99 4258 daigle
				<div class="textinput-label"><label for="geoserver.username" title="Geoserver user name">User Name</label></div>
100
				<input class="textinput" id="geoserver.username"
101 5847 leinfelder
					   name="geoserver.username" readonly="readonly"
102 4204 daigle
	           		   value="<%= request.getAttribute("geoserver.username") %>"/>
103 8203 walker
				<img class="question-mark" src="style/images/help.png"
104
	           		 onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GeoserverUpdatePassword')"/>
105 4258 daigle
	</div>
106
	<div class="form-row">
107
				<div class="textinput-label"><label for="geoserver.password" title="Geoserver user name">Password</label></div>
108
				<input class="textinput"  id="geoserver.password"
109 4204 daigle
					   name="geoserver.password"
110
					   type="password"
111
	           		   value="<%= request.getAttribute("geoserver.password") %>"/>
112 8203 walker
				<img class="question-mark" src="style/images/help.png"
113
	           		 onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GeoserverUpdatePassword')"/>
114 4258 daigle
	</div>
115 8203 walker
	<div class="buttons-wrapper">
116
		<input type="hidden" name="configureType" value="geoserver"/>
117
		<input type="hidden" name="processForm" value="true"/>
118
		<input class=left-button type="submit" value="Update"/>
119
		<input class=button type="button" value="Bypass" onClick="forward('./admin?configureType=geoserver&bypass=true&processForm=true')">
120
		<input class=button type="button" value="Cancel" onClick="forward('./admin')">
121
	</div>
122 4204 daigle
</form>
123
124 4557 daigle
<%@ include file="./footer-section.jsp"%>
125
126 4204 daigle
</body>
127
</html>