more.jsp revision b645988bdc1cf4f2f82b8c00ed041ddddd822c24
699e00089fb1a6eb31d7bd1c96bf973608953159Mark AndrewsCDDL HEADER START
6883a918f790147fd98e21b2c3d3d479320f3ed5Mark AndrewsThe contents of this file are subject to the terms of the
6883a918f790147fd98e21b2c3d3d479320f3ed5Mark AndrewsCommon Development and Distribution License (the "License").
e01f55daa4b611190a11a40299007e5e55018854Mark AndrewsYou may not use this file except in compliance with the License.
e01f55daa4b611190a11a40299007e5e55018854Mark AndrewsSee LICENSE.txt included in this distribution for the specific
4c577cbd1efc14156751e5b2ced7a866871a2f1aMark Andrewslanguage governing permissions and limitations under the License.
4c577cbd1efc14156751e5b2ced7a866871a2f1aMark AndrewsWhen distributing Covered Code, include this CDDL HEADER in each
2ba2a6e4be2eae3a1db1a657ceee15aa62799c7fMark Andrewsfile and include the License file at LICENSE.txt.
2ba2a6e4be2eae3a1db1a657ceee15aa62799c7fMark AndrewsIf applicable, add the following below this CDDL HEADER, with the
2ba2a6e4be2eae3a1db1a657ceee15aa62799c7fMark Andrewsfields enclosed by brackets "[]" replaced with your own identifying
30aaec21221ca5d8715d1ff1ce92fbdf98bb6652Mark Andrewsinformation: Portions Copyright [yyyy] [name of copyright owner]
30aaec21221ca5d8715d1ff1ce92fbdf98bb6652Mark AndrewsCDDL HEADER END
17a0bbda335ffc9af34be1000f500c622008458cMark AndrewsCopyright 2010 Sun Microsystems, Inc. All rights reserved.
17a0bbda335ffc9af34be1000f500c622008458cMark AndrewsUse is subject to license terms.
17a0bbda335ffc9af34be1000f500c622008458cMark Andrews--%><%@ page import = "javax.servlet.*,
29bd52e4ee3fa047474d5d5b405d1e09c800a6f4Evan Hunt%><%@include file="mast.jsp"%><%
b1b42b03b774d77ddfd38e5e0a5c0a3ed1944b89Mark Andrews String grepTerms = null;
b1b42b03b774d77ddfd38e5e0a5c0a3ed1944b89Mark Andrews if((grepTerms = request.getParameter("t")) != null && !grepTerms.equals("")) {
c5fa3706950224af3f5ae6d22944b1b8298d4eddMark Andrews QueryParser qparser = new QueryParser(Version.LUCENE_CURRENT,"full", new CompatibleAnalyser());
c5fa3706950224af3f5ae6d22944b1b8298d4eddMark Andrews qparser.setDefaultOperator(QueryParser.AND_OPERATOR);
4d205bf79b4abacfef41c9f01ee63938deba2f31Mark Andrews qparser.setAllowLeadingWildcard(environment.isAllowLeadingWildcard());
74b7355f1ee4a914aa09a6c6493aae64c588b026Mark Andrews Query tquery = qparser.parse(grepTerms);
4d205bf79b4abacfef41c9f01ee63938deba2f31Mark Andrews if (tquery != null) {
5cfe4bcb0afd71f6bc1cc2dab37a9ad6181c13f9Mark Andrews Context sourceContext = new Context(tquery);
5cfe4bcb0afd71f6bc1cc2dab37a9ad6181c13f9Mark Andrews %><p><span class="pagetitle">Lines Matching <b><%=tquery%></b></span></p><div id="more" style="line-height:1.5em;"><pre><%
5cfe4bcb0afd71f6bc1cc2dab37a9ad6181c13f9Mark Andrews sourceContext.getContext(new FileReader(resourceFile), out, context+"/xref", null, path ,null, false, null);
5b79d154014f87b6c54b1ec2d3912c35b02042a1Mark Andrews %></pre></div><%
a8e5a5918355d883f24e4f137c13cd53841679a9Mark Andrews } catch (Exception e) {
c1ee8bb4ba3e9ab1463403ed685729631de406b1Mark Andrews%><%@include file="foot.jspf"%>