Revision 8222
Added by Lauren Walker about 11 years ago
geoserver-configuration.jsp | ||
---|---|---|
40 | 40 |
<body> |
41 | 41 |
<%@ include file="./header-section.jsp"%> |
42 | 42 |
|
43 |
<img src="<%= request.getContextPath() %>/metacat-logo-darkgray.png" width="100px" align="right"/> |
|
44 |
<h2>Geoserver Configuration</h2> |
|
45 |
|
|
46 |
<p> |
|
47 |
Configure the Geoserver data directory, context and admin password. |
|
48 |
The default data directory is located within the Metacat deployment. |
|
49 |
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 |
</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> |
|
43 |
<div class="document"> |
|
44 |
<h2>Geoserver Configuration</h2> |
|
61 | 45 |
|
62 |
<div class="form-row"> |
|
63 |
<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 |
<img class="question-mark" src="style/images/help.png" |
|
68 |
onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GEOSERVER_DATA_DIR')"/> |
|
69 |
</div> |
|
70 |
<div class="form-row"> |
|
71 |
<div class="textinput-label"><label for="spatial.regenerateCacheOnRestart" title="Regenerate spatial cache">Regenerate spatial cache</label></div> |
|
46 |
<p> |
|
47 |
Configure the Geoserver data directory, context and admin password. |
|
48 |
The default data directory is located within the Metacat deployment. |
|
49 |
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 |
</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 |
|
|
62 |
<div class="form-row"> |
|
63 |
<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 |
<i class="icon-question-sign" onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GEOSERVER_DATA_DIR')"></i> |
|
68 |
</div> |
|
69 |
<div class="form-row"> |
|
70 |
<div class="textinput-label"><label for="spatial.regenerateCacheOnRestart" title="Regenerate spatial cache">Regenerate spatial cache</label></div> |
|
71 |
|
|
72 |
<% |
|
73 |
boolean regenerate = (Boolean) request.getAttribute("spatial.regenerateCacheOnRestart"); |
|
74 |
if (regenerate) { |
|
75 |
%> |
|
76 |
<input type="checkbox" class="textinput" id="spatial.regenerateCacheOnRestart" |
|
77 |
name="spatial.regenerateCacheOnRestart" |
|
78 |
value="true" |
|
79 |
checked="checked"/> |
|
80 |
<% } else {%> |
|
81 |
<input type="checkbox" class="textinput" id="spatial.regenerateCacheOnRestart" |
|
82 |
name="spatial.regenerateCacheOnRestart" |
|
83 |
value="true"/> |
|
84 |
<% } %> |
|
85 |
<i class="icon-question-sign" onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GEOSERVER_REGENERATE_CACHE')"></i> |
|
86 |
</div> |
|
87 |
<div class="form-row"> |
|
88 |
<div class="textinput-label"><label for="geoserver.context" title="Geoserver context">Context</label></div> |
|
89 |
<input class="textinput" id="geoserver.context" |
|
90 |
name="geoserver.context" |
|
91 |
value="<%= request.getAttribute("geoserver.context") %>"/> |
|
92 |
<i class="icon-question-sign" onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GeoserverContext')"></i> |
|
93 |
</div> |
|
94 |
|
|
95 |
<div class="form-row"> |
|
96 |
<div class="textinput-label"><label for="geoserver.username" title="Geoserver user name">User Name</label></div> |
|
97 |
<input class="textinput" id="geoserver.username" |
|
98 |
name="geoserver.username" readonly="readonly" |
|
99 |
value="<%= request.getAttribute("geoserver.username") %>"/> |
|
100 |
<i class="icon-question-sign" onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GeoserverUpdatePassword')"></i> |
|
101 |
</div> |
|
102 |
<div class="form-row"> |
|
103 |
<div class="textinput-label"><label for="geoserver.password" title="Geoserver user name">Password</label></div> |
|
104 |
<input class="textinput" id="geoserver.password" |
|
105 |
name="geoserver.password" |
|
106 |
type="password" |
|
107 |
value="<%= request.getAttribute("geoserver.password") %>"/> |
|
108 |
<i class="icon-question-sign" onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GeoserverUpdatePassword')"></i> |
|
109 |
</div> |
|
110 |
<div class="buttons-wrapper"> |
|
111 |
<input type="hidden" name="configureType" value="geoserver"/> |
|
112 |
<input type="hidden" name="processForm" value="true"/> |
|
113 |
<input class=button type="submit" value="Update"/> |
|
114 |
<input class=button type="button" value="Bypass" onClick="forward('./admin?configureType=geoserver&bypass=true&processForm=true')"> |
|
115 |
<input class=button type="button" value="Cancel" onClick="forward('./admin')"> |
|
116 |
</div> |
|
117 |
</form> |
|
118 |
</div> |
|
72 | 119 |
|
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 |
<img class="question-mark" src="style/images/help.png" |
|
87 |
onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GEOSERVER_REGENERATE_CACHE')"/> |
|
88 |
</div> |
|
89 |
<div class="form-row"> |
|
90 |
<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 |
<img class="question-mark" src="style/images/help.png" |
|
95 |
onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GeoserverContext')"/> |
|
96 |
</div> |
|
97 |
|
|
98 |
<div class="form-row"> |
|
99 |
<div class="textinput-label"><label for="geoserver.username" title="Geoserver user name">User Name</label></div> |
|
100 |
<input class="textinput" id="geoserver.username" |
|
101 |
name="geoserver.username" readonly="readonly" |
|
102 |
value="<%= request.getAttribute("geoserver.username") %>"/> |
|
103 |
<img class="question-mark" src="style/images/help.png" |
|
104 |
onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GeoserverUpdatePassword')"/> |
|
105 |
</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 |
name="geoserver.password" |
|
110 |
type="password" |
|
111 |
value="<%= request.getAttribute("geoserver.password") %>"/> |
|
112 |
<img class="question-mark" src="style/images/help.png" |
|
113 |
onClick="helpWindow('<%= request.getContextPath() %>','docs/geoserver.html#GeoserverUpdatePassword')"/> |
|
114 |
</div> |
|
115 |
<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 |
</form> |
|
123 |
|
|
124 | 120 |
<%@ include file="./footer-section.jsp"%> |
125 | 121 |
|
126 | 122 |
</body> |
Also available in: Unified diff
Matched the admin config pages to the default metacatUI theme. Changed the background image of the docs and config pages to a big cat for some metacat branding.