mast.jsp revision 6043bc503b0be1801d14dc51a81bd5921445ce7a
eb9008c69639a446d308b721eecd2b8c6d16a06fTim ReddehaseCDDL HEADER START
eb9008c69639a446d308b721eecd2b8c6d16a06fTim ReddehaseThe contents of this file are subject to the terms of the
eb9008c69639a446d308b721eecd2b8c6d16a06fTim ReddehaseCommon Development and Distribution License (the "License").
eb9008c69639a446d308b721eecd2b8c6d16a06fTim ReddehaseYou may not use this file except in compliance with the License.
See LICENSE.txt included in this distribution for the specific
file and include the License file at LICENSE.txt.
Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
<%@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 --------------------- */