more.jsp revision 1478
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.EnumSet,
493N/Ajava.util.logging.Level,
822N/Ajava.util.logging.Logger,
822N/A
879N/Aorg.apache.lucene.search.Query,
822N/Aorg.opensolaris.opengrok.Info,
822N/Aorg.opensolaris.opengrok.configuration.Project,
822N/Aorg.opensolaris.opengrok.search.QueryBuilder,
822N/Aorg.opensolaris.opengrok.search.context.Context,
822N/Aorg.opensolaris.opengrok.web.PageConfig,
822N/Aorg.opensolaris.opengrok.web.Prefix,
235N/Aorg.opensolaris.opengrok.web.Util,
822N/Aorg.opensolaris.opengrok.web.WebappListener"
822N/A%><%@include
822N/A
879N/Afile="mast.jspf"
879N/A
822N/A%><%
822N/A/* ---------------------- more.jsp start --------------------- */
822N/A{
822N/A cfg = PageConfig.get(request);
822N/A QueryBuilder qbuilder = cfg.getQueryBuilder();
822N/A
235N/A try {
822N/A Query tquery = qbuilder.build();
822N/A if (tquery != null) {
822N/A Context sourceContext = new Context(tquery, qbuilder.getQueries());
822N/A%><p><span class="pagetitle">Lines Matching <b><%=
822N/A Util.htmlize(tquery.toString()) %></b></span></p>
822N/A<div id="more" style="line-height:1.5em;">
822N/A <pre><%
822N/A sourceContext.getContext(new FileReader(cfg.getResourceFile()), out,
822N/A request.getContextPath() + Prefix.XREF_P, null, cfg.getPath(),
822N/A null, false, null);
822N/A %></pre>
822N/A</div><%
822N/A }
822N/A } catch (Exception e) {
822N/A Logger.getLogger("more.jsp").log(Level.WARNING, e.getMessage());
822N/A }
822N/A}
822N/A/* ---------------------- more.jsp end --------------------- */
822N/A%><%@
879N/A
822N/Ainclude file="foot.jspf"
235N/A
822N/A%>