projects.jspf revision 9158900bac6adc966217d308f9ddea9f5eb540c7
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeCDDL HEADER START
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeThe contents of this file are subject to the terms of the
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders HatlenCommon Development and Distribution License (the "License").
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeYou may not use this file except in compliance with the License.
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeSee LICENSE.txt included in this distribution for the specific
9ec7787531611654e8f50932473aa48963eaba55Trond Norbyelanguage governing permissions and limitations under the License.
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeWhen distributing Covered Code, include this CDDL HEADER in each
9ec7787531611654e8f50932473aa48963eaba55Trond Norbyefile and include the License file at LICENSE.txt.
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeIf applicable, add the following below this CDDL HEADER, with the
9ec7787531611654e8f50932473aa48963eaba55Trond Norbyefields enclosed by brackets "[]" replaced with your own identifying
9ec7787531611654e8f50932473aa48963eaba55Trond Norbyeinformation: Portions Copyright [yyyy] [name of copyright owner]
9ec7787531611654e8f50932473aa48963eaba55Trond NorbyeCDDL HEADER END
9158900bac6adc966217d308f9ddea9f5eb540c7Kryštof TulingerCopyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
14a41f02433890d19b2f871156271e3388cd0845Jens ElknerPortions Copyright 2011 Jens Elkner.
9158900bac6adc966217d308f9ddea9f5eb540c7Kryštof Tulinger<%@page import="
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner/* ---------------------- projects.jspf start --------------------- */
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen // Use UTF-8 if no encoding is specified in the request
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen if (request.getCharacterEncoding() == null) {
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen cfg.getEnv().setUrlPrefix(request.getContextPath() + Prefix.SEARCH_R + "?");
59b6a8c0cc6ef741a7180504b3c371e67c2aa338Knut Anders Hatlen String projects = cfg.getRequestedProjectsAsString();
9158900bac6adc966217d308f9ddea9f5eb540c7Kryštof Tulinger Cookie cookie = new Cookie(PageConfig.OPEN_GROK_PROJECT, URLEncoder.encode(projects, "utf-8"));
14a41f02433890d19b2f871156271e3388cd0845Jens Elkner/* ---------------------- projects.jspf end --------------------- */