mast.jsp revision e7ba7302dd0b53ef01e4ec5a624006222ef0e0f0
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United States<%--
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United States$Id$
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United StatesCDDL HEADER START
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United StatesThe contents of this file are subject to the terms of the
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United StatesCommon Development and Distribution License (the "License").
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United StatesYou may not use this file except in compliance with the License.
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United StatesSee LICENSE.txt included in this distribution for the specific
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United Stateslanguage governing permissions and limitations under the License.
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United StatesWhen distributing Covered Code, include this CDDL HEADER in each
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United Statesfile and include the License file at LICENSE.txt.
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United StatesIf applicable, add the following below this CDDL HEADER, with the
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United Statesfields enclosed by brackets "[]" replaced with your own identifying
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United Statesinformation: Portions Copyright [yyyy] [name of copyright owner]
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United StatesCDDL HEADER END
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United StatesCopyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United StatesPortions Copyright 2011 Jens Elkner.
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United States--%><%--
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United StatesAfter include you are here: /body/div#page/div#content/
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United States--%>
<%@page import="org.json.simple.JSONArray"%>
<%@page import="org.opensolaris.opengrok.configuration.messages.Message"%>
<%@page import="java.util.SortedSet"%>
<%@page import="org.opensolaris.opengrok.configuration.RuntimeEnvironment"%>
<%@ page session="false" errorPage="error.jsp" import="
/* ---------------------- mast.jsp start --------------------- */
cfg = PageConfig.get(request);
String redir = cfg.canProcess();
if (redir == null || redir.length() > 0) {
response.sendRedirect(redir);
long flast = cfg.getLastModified();
if (request.getDateHeader("If-Modified-Since") >= flast) {
response.setDateHeader("Last-Modified", flast);
if (request.getCharacterEncoding() == null) {
request.setCharacterEncoding("UTF-8");
String path = cfg.getPath();
cfg.setTitle("Cross Reference: " + path);
String context = request.getContextPath();
String uriEncodedPath = cfg.getUriEncodedPath();
String rev = cfg.getRequestedRevision();
include file="httpheader.jspf"
<script type="text/javascript">/* <![CDATA[ */
document.rev = getParameter("r");
document.domReady.push(domReadyMast);
document.pageReady.push(pageReadyMast);
<form action="<%= context + Prefix.SEARCH_P %>">
include file="pageheader.jspf"
>Cross Reference: <%= cfg.getCrossFilename() %></span><%
String dtag = cfg.getDefineTagsIndex();
if (dtag.length() > 0) {
if (cfg.getProject() != null) {
cfg.getProject().getDescription());
<% if (!messages.isEmpty()) { %>
<a href="<%= context + Prefix.XREF_P %>/">xref</a>: <%= Util
<% if (!messages.isEmpty()) { %>
if (!cfg.hasHistory()) {
%><li><a href="<%= context + Prefix.HIST_L + uriEncodedPath
} else if (cfg.annotate()) {
// taken from get_annotations() from utils.js
+ (window.location.hash ? '&h=' + window.location.hash.substring(1, window.location.hash.length) : '');
if (!cfg.isDir()) {
<li><a href="<%= context + Prefix.RAW_P + uriEncodedPath
<li><a href="<%= context + Prefix.DOWNLOAD_P + uriEncodedPath
Project proj = cfg.getProject();
String[] vals = cfg.getSearchOnlyIn();
<input type="hidden" name="project" value="<%=proj.getDescription()%>" /><%
<input type="hidden" id="contextpath" value="<%=request.getContextPath()%>" />
/* ---------------------- mast.jsp end --------------------- */