httpheader.jspf revision 1356
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<%--
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster$Id$
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterCDDL HEADER START
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterThe contents of this file are subject to the terms of the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterCommon Development and Distribution License (the "License").
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterYou may not use this file except in compliance with the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterSee LICENSE.txt included in this distribution for the specific
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterlanguage governing permissions and limitations under the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterWhen distributing Covered Code, include this CDDL HEADER in each
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterfile and include the License file at LICENSE.txt.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterIf applicable, add the following below this CDDL HEADER, with the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterfields enclosed by brackets "[]" replaced with your own identifying
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterinformation: Portions Copyright [yyyy] [name of copyright owner]
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterCDDL HEADER END
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterCopyright 2007 Sun Microsystems, Inc. All rights reserved.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterUse is subject to license terms.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterPortions Copyright 2011, 2012 Jens Elkner.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
f948ca04a28ccfeed9633bf4b0fb0d2c59c37478David Luna--%><%--
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterAll pages, which include this fragment should use the following code snippet
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterto set the title of the document before the include directive for this fragment:
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<pre>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster cfg = PageConfig.get(request);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster cfg.setTitle("your title");
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster</pre>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster--%><%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterorg.opensolaris.opengrok.Info,
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterorg.opensolaris.opengrok.web.PageConfig,
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterorg.opensolaris.opengrok.web.WebappListener"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster%><%@
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterinclude file="pageconfig.jspf"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster%><%
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster/* ---------------------- httpheader.jsp start --------------------- */
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster{
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster cfg = PageConfig.get(request);
f948ca04a28ccfeed9633bf4b0fb0d2c59c37478David Luna String styleDir = cfg.getCssDir();
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster String ctxPath = request.getContextPath();
f948ca04a28ccfeed9633bf4b0fb0d2c59c37478David Luna String dstyle = styleDir + '/' + "style.css";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster String pstyle = styleDir + '/' + "print.css";
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster Object debug = getServletContext().getAttribute(WebappListener.JS_DEBUG_PARAM);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster Object jquery = getServletContext().getAttribute(WebappListener.JQUERY_PARAM);
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster%><?xml version="1.0" encoding="UTF-8"?>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<head>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<meta name="robots" content="noindex,nofollow" />
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<meta name="generator" content="<%=Info.getVersion()%> (<%=Info.getRevision()%>)" />
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<meta http-equiv="X-UA-Compatible" content="IE=8" />
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<link rel="icon" href="<%=styleDir%>/img/icon.png" type="image/png" />
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<link rel="stylesheet" type="text/css" media="all"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster title="Default" href="<%= dstyle %>" />
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<link rel="alternate stylesheet" type="text/css" media="all"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster title="Paper White" href="<%= pstyle %>" />
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<link rel="stylesheet" type="text/css" href="<%=styleDir%>/print.css" media="print" />
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<link rel="search" href="<%=ctxPath%>/opensearch"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster type="application/opensearchdescription+xml"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster title="OpenGrok Search for current project(s)" /><%
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster if (jquery == Boolean.TRUE) {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster%>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<%-- TODO Bug 11749
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster <link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.autocomplete.css" />
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster <link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.combo.css%>" />
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster--%>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<link rel="stylesheet" type="text/css" href="<%=styleDir%>/jquery.tooltip.css" />
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<script type="text/javascript" src="<%=ctxPath%>/jquery-1.4.4.min.js"></script>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<script type="text/javascript" src="<%=ctxPath%>/jquery.tooltip-1.3.pack.js"></script>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<%--<script type="text/javascript" src="<%=ctxPath%>/jquery.autocomplete-1.1.pack.js"></script> --%>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<script type="text/javascript" src="<%=ctxPath%>/utils.js"></script><%
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster } else {
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster%>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<script type="text/javascript" src="<%=ctxPath%>/static/yui-<%=
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster debug == Boolean.TRUE ? "debug" : "min"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster %>.js"></script>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<script type="text/javascript" src="<%=ctxPath%>/static/opengrok.js"></script><%
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster }
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster%>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster<title><%= cfg.getTitle() %></title><%
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster out.write(cfg.getHeaderData());
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster%>
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster</head><%
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster}
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster/* ---------------------- httpheader.jsp end --------------------- */
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster%>