1281N/A<%--
1186N/A$Id$
1186N/A
58N/ACDDL HEADER START
58N/A
58N/AThe contents of this file are subject to the terms of the
1281N/ACommon Development and Distribution License (the "License").
58N/AYou may not use this file except in compliance with the License.
58N/A
58N/ASee LICENSE.txt included in this distribution for the specific
58N/Alanguage governing permissions and limitations under the License.
58N/A
58N/AWhen distributing Covered Code, include this CDDL HEADER in each
58N/Afile and include the License file at LICENSE.txt.
58N/AIf applicable, add the following below this CDDL HEADER, with the
58N/Afields enclosed by brackets "[]" replaced with your own identifying
58N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
58N/A
58N/ACDDL HEADER END
58N/A
1143N/ACopyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
1186N/APortions Copyright 2011 Jens Elkner.
1143N/A
1478N/A--%><%
1186N/A/* ---------------------- projects.jspf start --------------------- */
1186N/A{
1281N/A // Use UTF-8 if no encoding is specified in the request
1281N/A if (request.getCharacterEncoding() == null) {
1281N/A request.setCharacterEncoding("UTF-8");
1281N/A }
892N/A
1281N/A cfg = PageConfig.get(request);
1470N/A cfg.getConfig().setUrlPrefix(request.getContextPath() + Prefix.SEARCH_R + "?");
1281N/A
1281N/A String projects = cfg.getRequestedProjectsAsString();
1281N/A if (projects.length() != 0) {
1281N/A Cookie cookie = new Cookie("OpenGrokProject", projects);
1281N/A response.addCookie(cookie);
1281N/A }
58N/A}
1186N/A/* ---------------------- projects.jspf end --------------------- */
144N/A%>