Project

General

Profile

1
<%
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
	    String mapbuilderURL = "@systemidserver@/@context@/spatial/mapbuilder/demo/metacat/index.jsp" +
17
	                           "?map=" + map +
18
	                           "&template=" + template;                        
19
	    response.sendRedirect(mapbuilderURL);
20
	} 
21
%>
(2-2/5)