opensearch.jsp revision 1186
536N/ASee LICENSE.txt included in this distribution for the specific
536N/Afile and include the License file at LICENSE.txt.
536N/Ainclude file="pageconfig.jspf"
536N/Ainclude file="projects.jspf"
536N/A /* ---------------------- opensearch.jsp start --------------------- */
536N/A cfg = PageConfig.get(request);
536N/A int port = request.getServerPort();
537N/A port = url.length(); // mark
536N/A url.setLength(port); // rewind
536N/A Set<String> projects = cfg.getRequestedProjects();
536N/A text.append(name).append(',');
536N/A Util.appendQuery(url, "project", name);
536N/A if (text.length() != 0) {
536N/A<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
536N/A <ShortName>OpenGrok <%= text.toString() %></ShortName>
536N/A <Description>Search in OpenGrok <%= text.toString() %></Description>
536N/A<%-- <Url type="application/x-suggestions+json" template="suggestionURL"/>--%>
537N/A/* ---------------------- opensearch.jsp end --------------------- */