more.jsp revision 1186
610N/A<%--
493N/A$Id$
493N/A
493N/ACDDL HEADER START
493N/A
493N/AThe contents of this file are subject to the terms of the
493N/ACommon Development and Distribution License (the "License").
493N/AYou may not use this file except in compliance with the License.
493N/A
493N/ASee LICENSE.txt included in this distribution for the specific
493N/Alanguage governing permissions and limitations under the License.
493N/A
493N/AWhen distributing Covered Code, include this CDDL HEADER in each
493N/Afile and include the License file at LICENSE.txt.
493N/AIf applicable, add the following below this CDDL HEADER, with the
493N/Afields enclosed by brackets "[]" replaced with your own identifying
493N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
493N/A
493N/ACDDL HEADER END
493N/A
493N/ACopyright 2010 Sun Microsystems, Inc. All rights reserved.
493N/AUse is subject to license terms.
493N/A
493N/APortions Copyright 2011 Jens Elkner.
493N/A
493N/A--%><%@page import="
493N/Ajava.io.FileReader,
493N/Ajava.util.logging.Level,
493N/A
235N/Aorg.opensolaris.opengrok.OpenGrokLogger,
235N/Aorg.apache.lucene.search.Query,
606N/Aorg.opensolaris.opengrok.search.QueryBuilder,
235N/Aorg.opensolaris.opengrok.search.context.Context"
235N/A%><%@include
235N/A
235N/Afile="mast.jsp"
235N/A
235N/A%><%
235N/A/* ---------------------- more.jsp start --------------------- */
235N/A{
235N/A cfg = PageConfig.get(request);
235N/A QueryBuilder qbuilder = cfg.getQueryBuilder();
235N/A
235N/A try {
235N/A Query tquery = qbuilder.build();
235N/A if (tquery != null) {
235N/A Context sourceContext = new Context(tquery, qbuilder.getQueries());
235N/A%><p><span class="pagetitle">Lines Matching <b><%= tquery %></b></span></p>
235N/A<div id="more" style="line-height:1.5em;">
235N/A <pre><%
235N/A sourceContext.getContext(new FileReader(cfg.getResourceFile()), out,
235N/A request.getContextPath() + Prefix.XREF_P, null, cfg.getPath(),
235N/A null, false, null);
235N/A %></pre>
235N/A</div><%
235N/A }
235N/A } catch (Exception e) {
235N/A OpenGrokLogger.getLogger().log(Level.WARNING, e.getMessage());
235N/A }
235N/A}
235N/A/* ---------------------- more.jsp end --------------------- */
235N/A%><%@
235N/A
235N/Ainclude file="foot.jspf"
235N/A
235N/A%>