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