You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2008/01/03 15:33:28 UTC
svn commit: r608501 - in
/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp: css/default.css
footer.jsp header.jsp images/asf-logo.gif images/jlogo.gif populate.jsp
search.jsp swr.jsp webdav-jcr.jsp webdav-simple.jsp welcome.jsp
Author: jukka
Date: Thu Jan 3 06:33:28 2008
New Revision: 608501
URL: http://svn.apache.org/viewvc?rev=608501&view=rev
Log:
JCR-1287: jackrabbit-webapp facelift
Added:
jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/footer.jsp
jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/header.jsp
jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/images/asf-logo.gif (with props)
jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/images/jlogo.gif (with props)
jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/webdav-jcr.jsp
jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/webdav-simple.jsp
Modified:
jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/css/default.css
jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/populate.jsp
jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/search.jsp
jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/swr.jsp
jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/welcome.jsp
Modified: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/css/default.css
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/css/default.css?rev=608501&r1=608500&r2=608501&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/css/default.css (original)
+++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/css/default.css Thu Jan 3 06:33:28 2008
@@ -15,408 +15,75 @@
* limitations under the License.
*/
-:link,:visited,:hover,:active
- {
- text-decoration:none
- }
-
-dl
- {
- padding: 0;
- border: 0;
- background-color: transparent;
- }
-
-dd,dt
- {
- list-style:none
- }
-
-dd
- {
- padding: 0px;
- margin-left: 0px;
- }
-
-h1,h2,h3,h4,h5,h6,pre,code
- {
- font-size:1em;
- }
-
-li,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input,table,thead,tbody,tfoot,caption,th,tr,td,a,textarea,#breadcrumbs
- {
- margin:0;
- padding:0;
- background: transparent;
- }
-
-a img,:link img,:visited img
- {
- border:none
- }
-
-/* ------------------------------------------------------------------------*/
-
-body
- {
- background-color: #fff;
- margin: 0 0 0 0;
- padding: 30px 0 0 10%;
- }
-
-body, td, select, input, li
- {
- background-color: #;
- font-family: Verdana, Helvetica, Arial, sans-serif;
- font-size: small;
- }
-
-.composite
- {
- }
-
-#banner
- {
- border: 10px solid #ccc;
- background: ;
- width: 90%;
- padding: 5px;
- }
-
-#breadcrumbs
- {
- position: absolute;
- top: 0;
- left: 0;
- border: 0;
- background-color: #fff;
- width: 0;
- height: 0;
- visibility: hidden;
- }
-
-#poweredBy
- {
- text-align: left;
- margin: 0;
- padding: 0;
- border: 0;
- }
-
-#bodyColumn
- {
- margin: 3px 0 0 5%;
- padding: 3px 0 0 0;
- border: 0px solid #999;
- background: transparent;
- width: 73.5%;
- }
-
-#footer
- {
- border-top: 1px solid #999;
- width: 73.5%;
- margin: 20px 0 30px 5%;
- font-size: x-small;
- }
-
-img
- {
- border:none;
- }
-
-
-a:link
- {
- color:#546600;
- }
-
-a:visited
- {
- color: #7C7C7C;
- }
-
-a:active, a:hover
- {
- color:#fff;
- background-color: #869900;
- }
-
-a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover
- {
- background: url(../images/external.png) right no-repeat;
- padding-right: 18px;
- }
-
-a.newWindow, a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover
- {
- background: url(../images/newwindow.png) right center no-repeat;
- padding-right: 18px;
- }
-
-a.externalLink:hover
- {
- color:#fff;
- background-color: #869900;
- }
-
-div.clear
- {
- visibility: hidden;
- }
-
-/*------- BANNER and LOGOS -------------------------------------------------------*/
-
-#banner img
- {
- margin: 0px 0px 0px 0px;
- }
-
-#projectLogo
- {
- font-size: xx-large;
- font-weight: bold;
- }
-
-#organizationLogo img, #projectLogo img, #projectLogo span
- {
- margin: 10px 20px 10px 20px;
- }
-
-#projectLogo span
- {
- border: 0px solid;
- padding: 0px 0px 0px 0px;
- background-color: #ffffff;
- cursor: pointer;
- }
-
-.xleft, #organizationLogo img
- {
- float:right;
- }
-
-.xright, #projectLogo img, #projectLogo span
- {
- float:left;
- text-shadow: none;
- }
-
-/*---- LEFTCOLUMN / NAVCOLUMN ----------------------------------------------------*/
-
-#navcolumn
- {
- padding: 0 0 0 0;
- }
-
-#navcolumn h5, #navcolumn ul
- {
- margin: 0;
- padding: 0;
- font-size: small;
- }
-
-#navcolumn h5
- {
- font-size: smaller;
- border-bottom: 0px dotted #999;
- padding: 10px 0 0 10px;
- margin-bottom: 3px;
- }
-
-#navcolumn li
- {
- list-style-type: none;
- background-repeat: no-repeat;
- background-position: 0 4px;
- padding-left: 10px;
- list-style-position: outside;
- line-height: 1.2em;
- font-size: smaller;
- margin-bottom: 3px;
- }
-
-#navcolumn ul
- {
- margin-top: 3px;
- }
-
-#navcolumn li.expanded
- {
- background-image: url(../images/expanded.gif);
- color: #000000;
- padding-bottom: 3px;
- }
-
-#navcolumn li.collapsed
- {
- background-image: url(../images/collapsed.gif);
- margin-bottom: 3px;
- }
-
-#poweredBy
- {
- text-align: left;
- }
-
-#navcolumn img
- {
- margin-top: 10px;
- margin-bottom: 10px;
- border: 0;
- }
-
-#poweredBy img
- {
- display:block;
- margin: 10px 0 0 11px;
- border: 0;
- width: auto;
- height: auto;
- }
-
-#navcolumn a
- {
- text-decoration: none;
- }
-
-#navcolumn a:link
- {
- color:#4A5A00;
- }
-
-#navcolumn a:visited
- {
- color: #4A5A00;
- }
-
-#navcolumn a:active, #navcolumn a:hover
- {
- color:#fff;
- background-color: #869900;
- }
-
-/*------ TEXT --------------------------------------------------------------------*/
-
-h2, h3
- {
- padding: 20px 4px 4px 0px;
- border: 0px solid #999;
- border-bottom: 1px dotted #999;
- color: #869900;
- font-weight:900;
- font-size: large;
- }
-
-h3
- {
- font-size: medium;
- }
-
-#bodyColumn p
- {
- line-height: 1.3em;
- font-size: small;
- margin: 10px 0 5px 0;
- }
-
-#bodyColumn li, ol
- {
- line-height: 1.3em;
- font-size: small;
- margin: 0 0 5px 0;
- }
-
-#bodyColumn table li
- {
- line-height: 1.3em;
- font-size: x-small;
- margin: 0 0 1.3em 0;
- vertical-align: top;
- }
-
-#bodyColumn table
- {
- margin: 10px 0 10px 0;
- width: 100%;
- }
-
-#bodyColumn dt
- {
- font-weight: bold;
- margin: 25px 0 0 0;
- }
-
-table,.bodyTable, tr, tr.b
- {
- font-size: x-small;
- background: #ccc;
- vertical-align: top;
- }
-
-th, thead, td
- {
- padding: 5px;
- }
-
-td
- {
- background: #F5F9EF;
- }
-
-th, thead, tr, td, ul, li
- {
- font-size: x-small;
- }
-
-table.bodyTable th
- {
- color: #fff;
- background-color: #869900;
- text-align: left;
- font-weight: bold;
- font-size: x-small;
- }
-
-subsection
- {
- margin: 0;
- padding: 0;
- text-indent: 0;
- }
-
-/*------ SOURCE CODE ------------------------------------------------------------*/
-
-.source
- {
- padding: 12px;
- margin: 20px 0 20px 0;
- border: 0px solid #999;
- background: #E0E0E0;
- }
-
-.source pre
- {
- margin: 0px;
- padding: 0px;
- }
-
-
-#bodyColumn code
- {
- color: #000000;
- background: #E0E0E0;
- border: 1px solid #E0E0E0;
- border-left: 4px;
- border-right: 4px;
- }
-
-#bodyColumn a
- {
- text-decoration: underline;
- }
-
-#bodyColumn a:hover
- {
- text-decoration: none;
- }
+body { font-family: Verdana, Helvetica, Arial, sans-serif;
+ font-size: small;
+ background-color: #e0e0e0;
+ margin: 1em 100px 1em 100px;
+ padding: 0; }
+
+#page { background-color: white; }
+
+a:link { color: #667C00; }
+a:visited { color: #7C7C7C; }
+
+img { border: 0; }
+
+/* BANNER */
+
+#banner { padding: 0 0 113px 0;
+ border-top: 6px solid black;
+ border-bottom: 2px solid black; }
+#banner p { margin: 0; }
+#jcr { float: left; }
+#asf { float: right; }
+#banner img { margin: 0;
+ padding: 10px 0 0 0; }
+#banner a { text-decoration: none; }
+
+/* NAVIGATION */
+
+#navigation { padding: 18px 0;
+ width: 180px;
+ float: left;
+ font-size: x-small; }
+
+#navigation ul
+ { margin: 0;
+ padding: 1ex 0 1ex 1em;
+ list-style: none;
+ font-weight: bold; }
+
+#navigation ul ul
+ { font-weight: normal; }
+
+#navigation a
+ { text-decoration: none; }
+
+a.external { font-style: italic; }
+
+/* CONTENT */
+
+#content { margin: 1em 1em 1em 180px; }
+
+#content p { line-height: 1.3em; }
+
+h1, h2, h3 { color: #869900; }
+
+pre { background: #E0E0E0;
+ margin-left: 2em;
+ margin-right: 2em;
+ padding: 1em;
+ border: 1px dotted black; }
+
+td { font-size: small; }
+
+/* FOOTER */
+
+#footer { clear: both;
+ border-top: 1px solid #999;
+ font-size: x-small; }
+
+#footer p { margin: 0;
+ text-align: center; }
+
+#footer a { text-decoration: none; }
Added: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/footer.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/footer.jsp?rev=608501&view=auto
==============================================================================
--- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/footer.jsp (added)
+++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/footer.jsp Thu Jan 3 06:33:28 2008
@@ -0,0 +1,26 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
+ </div>
+ <div id="footer">
+ <p>
+ Powered by
+ <a href="http://jackrabbit.apache.org/">Apache Jackrabbit</a>.
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
Added: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/header.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/header.jsp?rev=608501&view=auto
==============================================================================
--- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/header.jsp (added)
+++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/header.jsp Thu Jan 3 06:33:28 2008
@@ -0,0 +1,73 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title><%= request.getAttribute("title") %></title>
+ <link rel="stylesheet"
+ href="<%= request.getContextPath() %>/css/default.css"
+ type="text/css"/>
+ <link rel="shortcut icon"
+ href="<%= request.getContextPath() %>/images/favicon.ico"
+ type="image/vnd.microsoft.icon" />
+ </head>
+ <body>
+ <div id="page">
+ <div id="banner">
+ <p id="jcr">
+ <a href="<%= request.getContextPath() %>/">
+ <img src="<%= request.getContextPath() %>/images/jlogo.gif"
+ alt="Apache Jackrabbit" height="100" width="336"/>
+ </a>
+ </p>
+ <p id="asf">
+ <a href="http://www.apache.org/">
+ <img src="<%= request.getContextPath() %>/images/asf-logo.gif"
+ alt="Apache Software Foundation" height="100" width="387"/>
+ </a>
+ </p>
+ </div>
+ <div id="navigation">
+ <ul>
+ <li>WebDAV Server
+ <ul>
+ <li><a href="<%= request.getContextPath() %>/">Welcome</a></li>
+ <li><a href="<%= request.getContextPath() %>/webdav-simple.jsp">Standard WebDAV</a></li>
+ <li><a href="<%= request.getContextPath() %>/webdav-jcr.jsp">JCR WebDAV</a></li>
+ <li><a href="<%= request.getContextPath() %>/search.jsp">Search</a></li>
+ <li><a href="<%= request.getContextPath() %>/populate.jsp">Populate</a></li>
+ </ul>
+ </li>
+ <li>Apache Jackrabbit
+ <ul>
+ <li><a href="http://jackrabbit.apache.org/">Apache Jackrabbit</a></li>
+ <li><a href="http://jackrabbit.apache.org/api/1.4/">Jackrabbit API</a></li>
+ <li><a href="http://wiki.apache.org/jackrabbit/FrontPage">Jackrabbit Wiki</a></li>
+ </ul>
+ </li>
+ <li>JCR
+ <ul>
+ <li><a href="http://jcp.org/en/jsr/detail?id=170">JSR 170</a></li>
+ <li><a href="http://jcp.org/en/jsr/detail?id=283">JSR 283</a></li>
+ <li><a href="http://www.day.com/maven/jsr170/javadocs/jcr-1.0/">JCR API</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div>
+ <div id="content">
+ <h2><%= request.getAttribute("title") %></h2>
Added: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/images/asf-logo.gif
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/images/asf-logo.gif?rev=608501&view=auto
==============================================================================
Binary file - no diff available.
Propchange: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/images/asf-logo.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/images/jlogo.gif
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/images/jlogo.gif?rev=608501&view=auto
==============================================================================
Binary file - no diff available.
Propchange: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/images/jlogo.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/populate.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/populate.jsp?rev=608501&r1=608500&r2=608501&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/populate.jsp (original)
+++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/populate.jsp Thu Jan 3 06:33:28 2008
@@ -1,21 +1,19 @@
-<%
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-%><%@ page import="javax.jcr.Repository,
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%><%@ page import="javax.jcr.Repository,
javax.jcr.Session,
org.apache.jackrabbit.j2ee.RepositoryAccessServlet,
javax.jcr.SimpleCredentials,
@@ -74,7 +72,9 @@
filetypes.add(types[i]);
}
}
-%><html>
+
+if (seedWord != null && numDocs > 0 && filetypes.size() > 0) { %>
+<html>
<head>
<title>Welcome to Apache Jackrabbit - Populate workspace: <%= wspName %></title>
<link rel="shortcut icon" href="<%= request.getContextPath() %>/images/favicon.ico" type="image/vnd.microsoft.icon">
@@ -84,19 +84,19 @@
<script><!--
function draw() {
// draw the bar
- document.write('<table cellspacing="0" cellpadding="0" style="border-color:' + this.borderColor + '; border-width:' + this.borderWidth + '; border-style:' + this.borderStyle + '">');
- document.write('<tr><td>');
- document.write('<table border="0" cellspacing="0" cellpadding="0" style="">');
- document.write('<tr><td style="background-color:' + this.barColor +'"><img src="<%= request.getContextPath() %>/images/0.gif" id="' + this.id + 'barFG" width="0" height="' + this.height + '"/></td>');
- document.write('<td><img src="<%= request.getContextPath() %>/images/0.gif" id="' + this.id + 'barBG" width="' + this.width + '" height="' + this.height + '"/></td></tr>');
- document.write('</table>');
- document.write('</tr></td>');
- document.write('</table>');
- document.write('<table>');
- document.write('<tr><td><img src="<%= request.getContextPath() %>/images/0.gif" width="' + this.width + '" height="0"/></td></tr>');
- document.write('<tr><td align="center"><div id="' + this.id + 'barValue">0%</div></td></tr>');
- document.write('<tr><td align="center"><div id="' + this.id + 'barInfo"> </div></td></tr>');
- document.write('</table>');
+ document.write('<table cellspacing="0" cellpadding="0" style="border-color:' + this.borderColor + '; border-width:' + this.borderWidth + '; border-style:' + this.borderStyle + '">');
+ document.write('<tr><td>');
+ document.write('<table border="0" cellspacing="0" cellpadding="0" style="">');
+ document.write('<tr><td style="background-color:' + this.barColor +'"><img src="<%= request.getContextPath() %>/images/0.gif" id="' + this.id + 'barFG" width="0" height="' + this.height + '"/></td>');
+ document.write('<td><img src="<%= request.getContextPath() %>/images/0.gif" id="' + this.id + 'barBG" width="' + this.width + '" height="' + this.height + '"/></td></tr>');
+ document.write('</table>');
+ document.write('</tr></td>');
+ document.write('</table>');
+ document.write('<table>');
+ document.write('<tr><td><img src="<%= request.getContextPath() %>/images/0.gif" width="' + this.width + '" height="0"/></td></tr>');
+ document.write('<tr><td align="center"><span id="' + this.id + 'barValue">0%</span></td></tr>');
+ document.write('<tr><td align="center"><span id="' + this.id + 'barInfo"> </span></td></tr>');
+ document.write('</table>');
this.barFG = document.getElementById(this.id + 'barFG');
this.barBG = document.getElementById(this.id + 'barBG');
@@ -135,17 +135,13 @@
</script>
</head>
<body>
- <div id="bodyColumn">
- <a href="http://jackrabbit.apache.org"><img src="<%= request.getContextPath() %>/images/jackrabbitlogo.gif" alt="" /></a><br>
+ <div style="background: white; border: 1px solid black; padding: 50px; width: 510px; margin: 50px auto;">
<h2>Populate workspace: "<%= wspName %>"</h2><br>
- <%
- if (seedWord != null && numDocs > 0 && filetypes.size() > 0) {
- %>
- <h6>Overall progress</h6>
- <script>var pb = new ProgressBar(<%= numDocs %>, 300, 30);pb.draw();</script>
+ <p>Overall progress</p>
+ <script>var pb = new ProgressBar(<%= numDocs %>, 500, 30);pb.draw();</script>
- <br><h6>Downloading document</h6>
- <script>var dp = new ProgressBar(1000, 300, 30);dp.draw();</script>
+ <p>Downloading document</p>
+ <script>var dp = new ProgressBar(1000, 500, 30);dp.draw();</script>
<%
Node root = jcrSession.getRootNode();
int n = 0;
@@ -255,14 +251,17 @@
offset += 10;
}
}
- } else {
- %>
- <p>This page allows you to populate the workspace with documents downloaded
-from the Internet.</p>
- <%
- }
- %>
- <form>
+%> </div>
+ </body>
+</html>
+<% } else {
+request.setAttribute("title", "Populate workspace " + wspName);
+%><jsp:include page="header.jsp"/>
+<p>
+ This page allows you to populate the workspace with documents downloaded
+ from the Internet.
+</p>
+ <form method="POST">
<table>
<tr><td>Seed word:</td><td><input name="seed" type="text" size="30" value="<%= seedWord == null ? "download" : seedWord %>"/></td></tr>
<tr><td>Number of documents:</td><td><input name="num" type="text" size="30" value="<%= numDocs == 0 ? 100 : numDocs %>"/></td></tr>
@@ -271,11 +270,8 @@
</table>
</form>
</div>
- <div id="footer">
- <em>Powered by <a href="<%= rep.getDescriptor(Repository.REP_VENDOR_URL_DESC) %>"><%= rep.getDescriptor(Repository.REP_NAME_DESC)%></a> version <%= rep.getDescriptor(Repository.REP_VERSION_DESC) %>.</em>
- </div>
- </body>
-</html><%
+<jsp:include page="footer.jsp"/>
+<% }
} finally {
if (jcrSession != null) {
jcrSession.logout();
Modified: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/search.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/search.jsp?rev=608501&r1=608500&r2=608501&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/search.jsp (original)
+++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/search.jsp Thu Jan 3 06:33:28 2008
@@ -1,21 +1,19 @@
-<%
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-%><%@ page import="javax.jcr.Repository,
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%><%@ page import="javax.jcr.Repository,
org.apache.jackrabbit.j2ee.RepositoryAccessServlet,
javax.jcr.Session,
javax.jcr.SimpleCredentials,
@@ -126,31 +124,16 @@
}
}
}
-%><html>
-<head>
-<title>Welcome to Apache Jackrabbit - Search</title>
-<link rel="shortcut icon" href="<%= request.getContextPath() %>/images/favicon.ico" type="image/vnd.microsoft.icon">
-<style type="text/css" media="all">
- @import url("<%= request.getContextPath() %>/css/default.css");
-</style>
-</head>
- <body>
- <div id="bodyColumn">
- <a href="http://jackrabbit.apache.org"><img src="<%= request.getContextPath() %>/images/jackrabbitlogo.gif" alt="" /></a><br>
- <h2>Jackrabbit Search</h2>
- <br><h5>Workspace: <%= wspName %></h5>
- <table>
- <tr><form name=gs method=GET>
- <td valign=top width=100%"><br>
- <input type=text name=q size=41 maxlength=2048 value="<%= q %>" title="Search">
- <input type=submit value="Search"><br><br>
- </td></form>
- </tr>
- </table>
+request.setAttribute("title", "Search workspace " + wspName);
+%><jsp:include page="header.jsp"/>
- <%
- if (rows != null && rows.getSize() == 0) {
- %>
+<form name="gs" method="GET">
+ <p>
+ <input type="text" name="q" size="41" maxlength="2048" value="<%= q %>" title="Search">
+ <input type=submit value="Search"><br><br>
+ </p>
+</form>
+<% if (rows != null && rows.getSize() == 0) { %>
<%
if (suggestedQuery != null) {
%><p><font class="p" color="#cc0000">Did you mean: </font><a href="search.jsp?q=<%= suggestedQuery %>" class="p"><b><i><%= suggestedQuery %></i></b></a> <br></p><%
@@ -249,12 +232,8 @@
tableClass = " class=\"t n bt\"";
}
%>
- </div>
- <div id="footer">
- <em>Powered by <a href="<%= rep.getDescriptor(Repository.REP_VENDOR_URL_DESC) %>"><%= rep.getDescriptor(Repository.REP_NAME_DESC)%></a> version <%= rep.getDescriptor(Repository.REP_VERSION_DESC) %>.</em>
- </div>
- </body>
-</html><%
+<jsp:include page="footer.jsp"/>
+<%
} finally {
if (jcrSession != null) {
jcrSession.logout();
Modified: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/swr.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/swr.jsp?rev=608501&r1=608500&r2=608501&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/swr.jsp (original)
+++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/swr.jsp Thu Jan 3 06:33:28 2008
@@ -1,21 +1,19 @@
-<%
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-%><%@ page import="javax.jcr.Repository,
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%><%@ page import="javax.jcr.Repository,
javax.jcr.Session,
org.apache.jackrabbit.j2ee.RepositoryAccessServlet,
javax.jcr.SimpleCredentials,
@@ -44,21 +42,9 @@
if (q == null || numResults == null) {
return;
}
- %>
-<html>
-<head>
-<title>Welcome to Apache Jackrabbit - Search within results</title>
-<link rel="shortcut icon" href="<%= request.getContextPath() %>/images/favicon.ico" type="image/vnd.microsoft.icon">
-<style type="text/css" media="all">
- @import url("<%= request.getContextPath() %>/css/default.css");
-</style>
-</head>
- <body>
- <div id="bodyColumn">
- <a href="http://jackrabbit.apache.org"><img src="<%= request.getContextPath() %>/images/jackrabbitlogo.gif" alt="" /></a><br>
- <h2>Search within results</h2>
-</head>
- <body onload=document.f.as_q.focus()>
+
+ request.setAttribute("title", "Search within results");
+ %><jsp:include page="header.jsp"/>
<form name=f action="search.jsp">
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr><table border=0 width=100%><tr><td><br>There were about <b><%= numResults %></b> results for <b><%= q %></b>.<br>
@@ -73,16 +59,8 @@
</td></tr>
</table>
</form>
- <br>
-
- </div>
- <div id="footer">
- <em>Powered by <a href="<%= rep.getDescriptor(Repository.REP_VENDOR_URL_DESC) %>"><%= rep.getDescriptor(Repository.REP_NAME_DESC)%></a> version <%= rep.getDescriptor(Repository.REP_VERSION_DESC) %>.</em>
- </div>
-
- </body>
-
-</html><%
+<jsp:include page="footer.jsp"/>
+<%
} finally {
if (jcrSession != null) {
jcrSession.logout();
Added: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/webdav-jcr.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/webdav-jcr.jsp?rev=608501&view=auto
==============================================================================
--- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/webdav-jcr.jsp (added)
+++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/webdav-jcr.jsp Thu Jan 3 06:33:28 2008
@@ -0,0 +1,82 @@
+<%@ page import="org.apache.jackrabbit.j2ee.JCRWebdavServerServlet,
+ org.apache.jackrabbit.j2ee.RepositoryAccessServlet,
+ org.apache.jackrabbit.j2ee.SimpleWebdavServlet,
+ java.net.URI,
+ javax.jcr.Repository"
+%><%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%><%
+request.setAttribute("title", "JCR WebDAV Server");
+
+URI uri = new URI(request.getRequestURL().toString());
+String href =
+ uri.getScheme() + "://" + uri.getHost() + ":" + uri.getPort()
+ + request.getContextPath()
+ + JCRWebdavServerServlet.getPathPrefix(pageContext.getServletContext());
+String shref = href + "/default/jcr:root";
+%><jsp:include page="header.jsp"/>
+<p>
+ The JCR WebDAV server provides an item-based WebDAV view to the
+ JCR repository, mapping the functionality provided by JSR 170 to the
+ WebDAV protocol in order to allow remote content repository access
+ via WebDAV.
+</p>
+<p>
+ See the draft document
+ <a href="http://www.day.com/jsr170/server/JCR_Webdav_Protocol.zip">JCR_Webdav_Protocol.zip</a>
+ for more details regarding this remoting protocol.
+</p>
+
+<h3>Access the content repository</h3>
+<p>
+ Use the following URLs to access the content repository in your WebDAV client:
+</p>
+<dl>
+<dt><a href="<%= href %>"><%= href %></a></dt>
+<dd>to access all workspaces of your JCR repository</dd>
+<dt><a href="<%= shref %>"><%= shref %></a></dt>
+<dd>to access a single workspace (example with workspace named 'default')</dd>
+</dl>
+
+<h3>Supported WebDAV functionality</h3>
+<p>
+ This implementation focuses on replicating all JCR features for remote
+ access instead of providing standard WebDAV functionality or compatibility
+ with existing WebDAV clients.
+</p>
+<p>
+ The following RFCs are used to implement the remoting functionality:
+</p>
+<ul>
+ <li><a href="http://www.ietf.org/rfc/rfc2518.txt">RFC 2518</a> (WebDAV 1,2)</li>
+ <li><a href="http://www.ietf.org/rfc/rfc3253.txt">RFC 3253</a> (DeltaV)</li>
+ <li><a href="http://www.ietf.org/rfc/rfc3648.txt">RFC 3648</a> (Ordering)</li>
+ <li><a href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html">Internet Draft WebDAV Search</a></li>
+</ul>
+<p>
+ For the client counterpart of this WebDAV servlet please take a look at the
+ <a href="https://svn.apache.org/repos/asf/jackrabbit/sandbox/spi/spi2dav">spi2dav</a>
+ project in the Apache Jackrabbit sandbox.
+</p>
+
+<h3>Configuration</h3>
+<ul>
+ <li>Context Path: <%= request.getContextPath() %></li>
+ <li>Resource Path Prefix: <%= JCRWebdavServerServlet.getPathPrefix(pageContext.getServletContext()) %></li>
+ <li>Workspace Name: <i>optional</i> (available workspaces are mapped as resources)</li>
+ <li>Additional servlet configuration: see <i>/WEB-INF/web.xml</i></li>
+</ul>
+<jsp:include page="footer.jsp"/>
Added: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/webdav-simple.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/webdav-simple.jsp?rev=608501&view=auto
==============================================================================
--- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/webdav-simple.jsp (added)
+++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/webdav-simple.jsp Thu Jan 3 06:33:28 2008
@@ -0,0 +1,69 @@
+<%@ page import="org.apache.jackrabbit.j2ee.SimpleWebdavServlet,
+ java.net.URI"
+%><%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%><%
+request.setAttribute("title", "Standard WebDAV Server");
+
+URI uri = new URI(request.getRequestURL().toString());
+String href =
+ uri.getScheme() + "://" + uri.getHost() + ":" + uri.getPort()
+ + request.getContextPath()
+ + SimpleWebdavServlet.getPathPrefix(pageContext.getServletContext())
+ + "/default/";
+%><jsp:include page="header.jsp"/>
+
+<p>
+ The default WebDAV server (aka: Simple Server) is a
+ <a href="http://www.ietf.org/rfc/rfc2518.txt">DAV1,2</a> and
+ <a href="http://www.ietf.org/rfc/rfc3253.txt">DeltaV</a>
+ compliant WebDAV server implementation. It offers a file-based view to
+ the JCR repository, suitable for everybody looking for standard WebDAV
+ functionality. Essentially, the contents of the underlying content
+ repository are exposed as a hierarchical collection of files and folders.
+<p>
+
+<h3>Access the content repository</h3>
+<p>
+ Use the following URL to access the content repository in your WebDAV client:
+</p>
+<ul>
+ <li><a href="<%= href %>"><%= href %></a></li>
+</ul>
+<p>
+ To access other workspace than the default one, replace the last part of
+ the URL (<code>/default/</code>) with the name of another workspace.
+</p>
+<p>
+ You can also <a href="search.jsp">search</a> the default workspace
+ <a href="populate.jsp">populate</a> it with example content from the
+ Internet.
+</p>
+
+<h3>Supported WebDAV functionality</h3>
+<ul>
+<li><a href="http://www.ietf.org/rfc/rfc2518.txt">RFC 2518</a> (WebDAV 1,2)</li>
+<li><a href="http://www.ietf.org/rfc/rfc3253.txt">RFC 3253</a> (DeltaV)</li>
+</ul>
+
+<h3>Configuration</h3>
+<ul>
+ <li>Context path: <%= request.getContextPath() %></li>
+ <li>Resource path prefix: <%= SimpleWebdavServlet.getPathPrefix(pageContext.getServletContext()) %></li>
+ <li>Servlet configuration: see <i>/WEB-INF/web.xml</i></li>
+ <li>WebDAV specific resource configuration: see <i>/WEB-INF/config.xml</i></li>
+</ul>
+<jsp:include page="footer.jsp"/>
Modified: jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/welcome.jsp
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/welcome.jsp?rev=608501&r1=608500&r2=608501&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/welcome.jsp (original)
+++ jackrabbit/trunk/jackrabbit-webapp/src/main/webapp/welcome.jsp Thu Jan 3 06:33:28 2008
@@ -1,175 +1,69 @@
<%@ page import="org.apache.jackrabbit.j2ee.JCRWebdavServerServlet,
- org.apache.jackrabbit.j2ee.RepositoryAccessServlet,
- org.apache.jackrabbit.j2ee.SimpleWebdavServlet,
- java.net.URI,
- javax.jcr.Repository"%><%
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-%>
-<html>
-<head>
-<title>Welcome to Apache Jackrabbit - WebDAV Server</title>
-<link rel="shortcut icon" href="<%= request.getContextPath() %>/images/favicon.ico" type="image/vnd.microsoft.icon">
-<style type="text/css" media="all">
- @import url("<%= request.getContextPath() %>/css/default.css");
-</style>
-</head>
-<body>
-<%
- Repository rep;
- try {
- rep = RepositoryAccessServlet.getRepository(pageContext.getServletContext());
- } catch (Throwable e) {
- %>Error while accessing the repository: <font color="red"><%= e.getMessage() %></font><br><%
- %>Check the configuration or use the <a href="admin/">easy setup</a> wizard.<%
- return;
- }
+ org.apache.jackrabbit.j2ee.RepositoryAccessServlet,
+ org.apache.jackrabbit.j2ee.SimpleWebdavServlet,
+ java.net.URI,
+ javax.jcr.Repository"
+%><%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%><%
+
+Repository rep;
+try {
+ rep = RepositoryAccessServlet.getRepository(pageContext.getServletContext());
+} catch (Throwable e) {
+ %>Error while accessing the repository: <font color="red"><%= e.getMessage() %></font><br><%
+ %>Check the configuration or use the <a href="admin/">easy setup</a> wizard.<%
+ return;
+}
-%>
-<div id="bodyColumn">
-<a href="http://jackrabbit.apache.org"><img src="<%= request.getContextPath() %>/images/jackrabbitlogo.gif" alt="" /></a><br>
-<h2>Jackrabbit WebDAV Server</h2>
+request.setAttribute("title", "Apache Jackrabbit WebDAV Server");
+%><jsp:include page="header.jsp"/>
<p>
-Welcome to the Jackrabbit WebDAV Server.
+ Welcome to the Apache Jackrabbit WebDAV Server.
It currently provides 2 WebDAV servlets that allow distinct views to the JCR
repository:
-
-<ol>
-<li><a href="#simple">Standard WebDAV Server</a></li>
-<li><a href="#remoting">JCR WebDAV Server</a></li>
-</ol>
</p>
+<ul>
+<li><a href="webdav-simple.jsp">Standard WebDAV Server</a></li>
+<li><a href="webdav-jcr.jsp">JCR WebDAV Server</a></li>
+</ul>
<p>
-See also the Jackrabbit <a href="http://jackrabbit.apache.org/doc/components/jcr-server.html">Jcr-Server</a>
+ See The
+ <a href="http://jackrabbit.apache.org/doc/components/jcr-server.html">Jackrabbit Jcr-Server</a>
component for further information.</p>
-
-<a name="simple"></a>
-<h3>Standard WebDAV Server</h3><br>
-
-The default WebDAV server (aka: Simple Server) represents a DAV1,2 and DeltaV compliant WebDAV
-server implementation. It covers a filebase view to the JCR repository, suitable
-for everybody looking for standard WebDAV functionality.
-
-<p>
-Enter the following URL to your WebDAV client:
</p>
-<p>
-<%
-URI uri = new URI(request.getRequestURL().toString());
-String href = uri.getScheme() + "://" + uri.getHost() + ":" + uri.getPort() + request.getContextPath() + SimpleWebdavServlet.getPathPrefix(pageContext.getServletContext()) + "/default/";
-%>
-<a href="<%= href %>"><%= href %></a>
-</p>
+<h3>About Apache Jackrabbit</h3>
<p>
-Note, that <i>/default</i> is an assumption regarding the name of your default workspace such as
-configured in the <i>repository.xml</i>.
-</p>
-
-<br><h5>Links</h5>
-<ul>
- <li><a href="<%= request.getContextPath() %><%= SimpleWebdavServlet.getPathPrefix(pageContext.getServletContext()) %>/default/">Browser View</a></li>
- <li><a href="<%= request.getContextPath() %>/search.jsp">Search</a> for files in the default workspace.</li>
- <li>Nothing to search for?<br><a href="<%= request.getContextPath() %>/populate.jsp">Populate</a> the default workspace with content.</li>
-</ul>
-
-<br><h5>Supported WebDAV functionality</h5>
-<ul>
-<li><a href="http://www.ietf.org/rfc/rfc2518.txt">RFC 2518 (WebDAV 1,2)</a></li>
-<li><a href="http://www.ietf.org/rfc/rfc3253.txt">RFC 3253 (DeltaV)</a></li>
-</ul>
-
-<br><h5>Configuration</h5>
-<ul>
- <li>Context path: <%= request.getContextPath() %></li>
- <li>Resource path prefix: <%= SimpleWebdavServlet.getPathPrefix(pageContext.getServletContext()) %></li>
- <li>Workspace name: see <i>/WEB-INF/repository/repository.xml</i><br>
- The default value = 'default'</li>
- <li>Additional servlet configuration: see <i>/WEB-INF/web.xml</i></li>
- <li>WebDAV specific resource configuration: see <i>/WEB-INF/config.xml</i></li>
-</ul>
-
-
-
-<a name="remoting"></a>
-
-<h3>JCR WebDAV Server</h3><br>
-
-Itembased WebDAV View to the JCR repository, mapping the functionality
-provided by JSR 170 to the WebDAV protocol in order to allow remoting of JSR170 via
-WebDAV. Some more details regarding remoting are available as initial
-draft "<a href="http://www.day.com/jsr170/server/JCR_Webdav_Protocol.zip">JCR_Webdav_Protocol.zip</a>".
-
-<p>
-Enter one of the following URLs to your WebDAV client:
-
-<ul>
-<li>
-<%
-uri = new URI(request.getRequestURL().toString());
-href = uri.getScheme() + "://" + uri.getHost() + ":" + uri.getPort() + request.getContextPath() + JCRWebdavServerServlet.getPathPrefix(pageContext.getServletContext());
-%>
-<a href="<%= href %>"><%= href %></a><br>
-to expose all workspaces of your JCR repository
-</li>
-<li>
-<%
-String shref = href + "/default/jcr:root";
-%>
-<a href="<%= shref %>"><%= shref %></a><br>
-to expose a single workspace (example with workspace named 'default') of your JCR repository.
-</li>
-</ul>
+ <a href="http://jackrabbit.apache.org/">Apache Jackrabbit</a> is a fully
+ conforming implementation of the Content Repository for Java Technology API
+ (JCR). A content repository is a hierarchical content store with support for
+ structured and unstructured content, full text search, versioning,
+ transactions, observation, and more. Typical applications that use content
+ repositories include content management, document management, and records
+ management systems.
</p>
<p>
-Note, that <i>/default</i> is an assumption regarding the name of your default workspace such as
-configured in the <i>repository.xml</i>.
+ Version 1.0 of the JCR API was specified by the
+ <a href="http://jcp.org/en/jsr/detail?id=170">Java Specification Request 170</a>
+ (JSR 170) and work on the JCR version 2.0 has begun in
+ <a href="http://jcp.org/en/jsr/detail?id=170">JSR 283</a>.
</p>
-<br><h5>Links</h5>
-<ul>
- <li><a href="<%= href %>">Browser View</a></li>
-</ul>
-
-
-<br><h5>Supported WebDAV functionality</h5>
<p>
-This implementation focuses on remoting rather than standard WebDAV functionality
-or compatibility with existing WebDAV clients.
-The following RFCs are used to implement the remoting functionality:
-<ul>
- <li><a href="http://www.ietf.org/rfc/rfc2518.txt">RFC 2518 (WebDAV 1,2)</a></li>
- <li><a href="http://www.ietf.org/rfc/rfc3253.txt">RFC 3253 (DeltaV)</a></li>
- <li><a href="http://www.ietf.org/rfc/rfc3648.txt">RFC 3648 (Ordering)</a></li>
- <li><a href="http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html">Internet Draft WebDAV Search</a>.</li>
-</ul>
-For the client counterpart of this WebDAV servlet please take a look at
-the <a href="https://svn.apache.org/repos/asf/jackrabbit/sandbox/spi/spi2dav">Spi2Dav</a> sandbox project.
+ Apache Jackrabbit is a project of the
+ <a href="http://www.apache.org/">Apache Software Foundation</a>.
</p>
-
-<br><h5>Configuration</h5>
-<ul>
- <li>Context Path: <%= request.getContextPath() %></li>
- <li>Resource Path Prefix: <%= JCRWebdavServerServlet.getPathPrefix(pageContext.getServletContext()) %></li>
- <li>Workspace Name: <i>optional</i> (available workspaces are mapped as resources)</li>
- <li>Additional servlet configuration: see <i>/WEB-INF/web.xml</i></li>
-</ul>
-</div>
-<div id="footer">
-<em>Powered by <a href="<%= rep.getDescriptor(Repository.REP_VENDOR_URL_DESC) %>"><%= rep.getDescriptor(Repository.REP_NAME_DESC)%></a> version <%= rep.getDescriptor(Repository.REP_VERSION_DESC) %>.</em>
-</div>
-</body>
-</html>
+<jsp:include page="footer.jsp"/>