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