opensearch.jsp revision 812
98N/A<%--
98N/ACDDL HEADER START
1276N/A
98N/AThe contents of this file are subject to the terms of the
1276N/ACommon Development and Distribution License (the "License").
98N/AYou may not use this file except in compliance with the License.
98N/A
919N/ASee LICENSE.txt included in this distribution for the specific
919N/Alanguage governing permissions and limitations under the License.
919N/A
919N/AWhen distributing Covered Code, include this CDDL HEADER in each
919N/Afile and include the License file at LICENSE.txt.
919N/AIf applicable, add the following below this CDDL HEADER, with the
919N/Afields enclosed by brackets "[]" replaced with your own identifying
919N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
919N/A
919N/ACDDL HEADER END
919N/A
919N/ACopyright 2009 Sun Microsystems, Inc. All rights reserved.
919N/AUse is subject to license terms.
919N/A
919N/Aident "%Z%%M% %I% %E% SMI"
919N/A
919N/A--%><%@ page import = "java.util.List,
98N/Ajavax.servlet.*,
98N/Ajavax.servlet.http.*,
98N/Aorg.opensolaris.opengrok.configuration.RuntimeEnvironment,
98N/Aorg.opensolaris.opengrok.configuration.Project,
98N/Aorg.opensolaris.opengrok.web.*"
98N/A session="false" errorPage="error.jsp" %><%@ include file="projects.jspf" %><%
156N/AString q = request.getParameter("q");
493N/AString defs = request.getParameter("defs");
98N/AString refs = request.getParameter("refs");
970N/AString hist = request.getParameter("hist");
970N/AString path = request.getParameter("path");
970N/ARuntimeEnvironment environment = RuntimeEnvironment.getInstance();
970N/AString Context = request.getContextPath();
98N/AString laf = environment.getWebappLAF();
1276N/Aif (project == null) { "" : project; }
98N/AStringBuffer url = request.getRequestURL();
911N/Aurl=url.delete(url.lastIndexOf("/"),url.length());
1276N/A%><?xml version="1.0" encoding="UTF-8"?>
1276N/A<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
1276N/A<ShortName>OpenGrok <%=project%></ShortName>
911N/A<Description>Search in OpenGrok <%=project%></Description>
98N/A<InputEncoding>UTF-8</InputEncoding>
1291N/A<Image height="16" width="16" type="image/png"><%=url%>/<%=laf%>/img/icon.png</Image><%--
1291N/A<Url type="application/x-suggestions+json" template="suggestionURL"/>
1276N/A--%><%
1276N/Aif (project != "") {
98N/Aproject = "project=" + Util.URIEncode(project);
98N/Aproject = project + "&amp;";}
98N/A%><Url template="<%=url%>/s?<%=project%>q={searchTerms}&amp;start={startPage?}" type="text/html"/>
98N/A</OpenSearchDescription>
98N/A