Project

General

Profile

1 3032 perry
<%
2
	String map = request.getParameter("map");
3
    if (map == null)
4
	    map = "demisWorldMap";
5
6
	String template = request.getParameter("template");
7
    if (template == null)
8
	    template = "default";
9
10
	// Currently "mapbuilder" and "openlayers" are supported
11
	String client = request.getParameter("template");
12
    if (client != "mapbuilder" || client != "openlayers" || client == null)
13
	    client = "mapbuilder";
14
15
	if (client == "mapbuilder") {
16 3661 barteau
	    String mapbuilderURL = request.getContextPath() + "/spatial/mapbuilder/demo/metacat/index.jsp" +
17 3032 perry
	                           "?map=" + map +
18
	                           "&template=" + template;
19
	    response.sendRedirect(mapbuilderURL);
20
	}
21 3661 barteau
%>