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