opensearch.jsp revision 30d2f45dd260208f0fb882dde134a249318524b9
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill Cunnington<%--
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonCDDL HEADER START
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill Cunnington
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonThe contents of this file are subject to the terms of the
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonCommon Development and Distribution License (the "License").
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonYou may not use this file except in compliance with the License.
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill Cunnington
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonSee LICENSE.txt included in this distribution for the specific
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill Cunningtonlanguage governing permissions and limitations under the License.
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill Cunnington
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonWhen distributing Covered Code, include this CDDL HEADER in each
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill Cunningtonfile and include the License file at LICENSE.txt.
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonIf applicable, add the following below this CDDL HEADER, with the
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtonfields enclosed by brackets "[]" replaced with your own identifying
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill Cunningtoninformation: Portions Copyright [yyyy] [name of copyright owner]
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill Cunnington
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonCDDL HEADER END
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill Cunnington
af38905e8a5231702db169603d942d5d2e0c4332David LunaCopyright 2009 Sun Microsystems, Inc. All rights reserved.
af38905e8a5231702db169603d942d5d2e0c4332David LunaUse is subject to license terms.
af38905e8a5231702db169603d942d5d2e0c4332David Luna
af38905e8a5231702db169603d942d5d2e0c4332David Lunaident "%Z%%M% %I% %E% SMI"
af38905e8a5231702db169603d942d5d2e0c4332David Luna
af38905e8a5231702db169603d942d5d2e0c4332David Luna--%><%@ page import = "java.util.List,
af38905e8a5231702db169603d942d5d2e0c4332David Lunajavax.servlet.*,
8945f1b58614bdedf14efc01f9830688207cca04Phill Cunningtonjavax.servlet.http.*,
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunningtonorg.opensolaris.opengrok.configuration.RuntimeEnvironment,
3e00d049c722abe4b6819929a7bfef6c3f62d4f2James Phillpottsorg.opensolaris.opengrok.configuration.Project,
c0202e5a338212ae386c672821f6dc4931c50f45James Phillpottsorg.opensolaris.opengrok.web.*"
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington session="false" errorPage="error.jsp" %><%@ include file="projects.jspf" %><%
8945f1b58614bdedf14efc01f9830688207cca04Phill CunningtonString q = request.getParameter("q");
8945f1b58614bdedf14efc01f9830688207cca04Phill CunningtonString defs = request.getParameter("defs");
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonString refs = request.getParameter("refs");
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonString hist = request.getParameter("hist");
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonString path = request.getParameter("path");
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonRuntimeEnvironment environment = RuntimeEnvironment.getInstance();
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonString Context = request.getContextPath();
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill CunningtonString laf = environment.getWebappLAF();
a093731116a8c24d49b903df7602cf586e499b45Phill Cunningtonif (project == null) { "" : project; }
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill CunningtonStringBuffer url = request.getRequestURL();
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunningtonurl=url.delete(url.lastIndexOf("/"),url.length());
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill Cunnington%><?xml version="1.0" encoding="UTF-8"?>
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill Cunnington<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
8945f1b58614bdedf14efc01f9830688207cca04Phill Cunnington<ShortName>OpenGrok <%=project%></ShortName>
8945f1b58614bdedf14efc01f9830688207cca04Phill Cunnington<Description>Search in OpenGrok <%=project%></Description>
8945f1b58614bdedf14efc01f9830688207cca04Phill Cunnington<InputEncoding>UTF-8</InputEncoding>
8945f1b58614bdedf14efc01f9830688207cca04Phill Cunnington<Image height="16" width="16" type="image/png"><%=url%>/<%=laf%>/img/icon.png</Image><%--
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington<Url type="application/x-suggestions+json" template="suggestionURL"/>
8945f1b58614bdedf14efc01f9830688207cca04Phill Cunnington--%><%
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunningtonif (project != "") {
5db031755ab3a8762e266f96f5d74832548d330bPhill Cunningtonproject = "project=" + Util.URIEncode(project);
8945f1b58614bdedf14efc01f9830688207cca04Phill Cunningtonproject = project + "&amp;";}
7bc2a743f1c860eaeaa2a23d8981311d720d5004Phill Cunnington%><Url template="<%=url%>/s?<%=project%>q={searchTerms}&amp;start={startPage?}" type="text/html"/>
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington</OpenSearchDescription>
756d4b8bce5a58e5bd8fe686688b6c42d2e7052bPhill Cunnington