| 1 |
<%-- |
| 2 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 |
contributor license agreements. See the NOTICE file distributed with |
| 4 |
this work for additional information regarding copyright ownership. |
| 5 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 |
(the "License"); you may not use this file except in compliance with |
| 7 |
the License. You may obtain a copy of the License at |
| 8 |
|
| 9 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
|
| 11 |
Unless required by applicable law or agreed to in writing, software |
| 12 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 13 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 |
See the License for the specific language governing permissions and |
| 15 |
limitations under the License. |
| 16 |
--%><%@page import="java.io.InputStream, |
| 17 |
java.io.InputStreamReader, |
| 18 |
java.io.Reader"%><%! |
| 19 |
|
| 20 |
/** |
| 21 |
* Escapes and outputs the contents of a given (UTF-8) text resource. |
| 22 |
* TODO: There should be an easier way to do this! |
| 23 |
* |
| 24 |
* @param path path of the resource to output |
| 25 |
* @param out the JSP output writer |
| 26 |
* @throws Exception if something goes wrong |
| 27 |
*/ |
| 28 |
private void output(String path, JspWriter out) throws Exception { |
| 29 |
InputStream input = getServletContext().getResourceAsStream(path); |
| 30 |
try { |
| 31 |
Reader reader = new InputStreamReader(input, "UTF-8"); |
| 32 |
for (int ch = reader.read(); ch != -1; ch = reader.read()) { |
| 33 |
if (ch == '<') { |
| 34 |
out.write("<"); |
| 35 |
} else if (ch == '>') { |
| 36 |
out.write(">"); |
| 37 |
} else if (ch == '&') { |
| 38 |
out.write("&"); |
| 39 |
} else { |
| 40 |
out.write((char) ch); |
| 41 |
} |
| 42 |
} |
| 43 |
} finally { |
| 44 |
input.close(); |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
%><% request.setAttribute("title", "About Apache Jackrabbit"); |
| 49 |
%><jsp:include page="header.jsp"/> |
| 50 |
<p> |
| 51 |
<a href="http://jackrabbit.apache.org/">Apache Jackrabbit</a> is a fully |
| 52 |
conforming implementation of the Content Repository for Java Technology API |
| 53 |
(JCR). A content repository is a hierarchical content store with support for |
| 54 |
structured and unstructured content, full text search, versioning, |
| 55 |
transactions, observation, and more. Typical applications that use content |
| 56 |
repositories include content management, document management, and records |
| 57 |
management systems. |
| 58 |
</p> |
| 59 |
<p> |
| 60 |
Version 1.0 of the JCR API was specified by the |
| 61 |
<a href="http://jcp.org/en/jsr/detail?id=170">Java Specification Request 170</a> |
| 62 |
(JSR 170) and version 2.0 by the |
| 63 |
<a href="http://jcp.org/en/jsr/detail?id=283">Java Specification Request 283</a>. |
| 64 |
</p> |
| 65 |
<p> |
| 66 |
Apache Jackrabbit is a project of the |
| 67 |
<a href="http://www.apache.org/">Apache Software Foundation</a>. |
| 68 |
</p> |
| 69 |
<h2>Copyright Notice</h2> |
| 70 |
<pre><% output("/META-INF/NOTICE", out); %></pre> |
| 71 |
<h2>License Information</h2> |
| 72 |
<pre><% output("/META-INF/LICENSE", out); %></pre> |
| 73 |
<jsp:include page="footer.jsp"/> |