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