projects.jspf revision 77
919N/ASee LICENSE.txt included in this distribution for the specific
919N/Afile and include the License file at LICENSE.txt.
90N/A--%><%@ page import="org.opensolaris.opengrok.configuration.*,
90N/ARuntimeEnvironment env = RuntimeEnvironment.getInstance();
90N/Aif (env.hasProjects()) {
90N/A projects = env.getProjects();
90N/A Project defaultProject = env.getDefaultProject();
90N/A project = defaultProject.getPath();
90N/A Cookie[] cookies = request.getCookies();
90N/A project = cookie.getValue();
90N/A String p[] = request.getParameterValues("project");
90N/A project = sb.toString().trim();
90N/A for (String aproj : project.split(" ")) {
if (proj.getPath().equalsIgnoreCase(aproj)) {
sb.append(aproj);
sb.append(" ");
project = sb.toString().trim();
Cookie cookie = new Cookie("OpenGrok/project", project);
response.addCookie(cookie);