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