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