projects.jspf revision 894
160N/ASee LICENSE.txt included in this distribution for the specific
160N/Afile and include the License file at LICENSE.txt.
160N/A--%><%@ page import="org.opensolaris.opengrok.configuration.*,
160N/AString context = request.getContextPath();
160N/ARuntimeEnvironment env = RuntimeEnvironment.getInstance();
345N/Aenv.setUrlPrefix(context + "/s?");
160N/Aif (env.hasProjects()) {
160N/A projects = env.getProjects();
160N/A String pr[] = request.getParameterValues("project");
160N/A if (Project.getByDescription(p[idx]) != null) {
160N/A project.add(p[idx]);
160N/A Cookie[] cookies = request.getCookies();
160N/A for (String proj : cookie.getValue().split(",")) {
160N/A if (Project.getByDescription(proj) != null) {
160N/A project.add(proj);
605N/A Project defaultProject = env.getDefaultProject();
605N/A if (defaultProject != null && project.isEmpty() && !project.contains(defaultProject.getDescription())) {
605N/A response.addCookie(cookie);