%@ page import="java.net.*" %>
<%@ page import="java.io.*" %>
Task Pane
Hello Map
<%
String sessionId = request.getParameter("SESSION");
String mapName = request.getParameter("MAPNAME");
%>
This sample shows the most basic interaction with a map. It connects to a session
and queries information about the map.
-
Display Spatial Reference
Connect to MapGuide session and display basic information.
<%
String fileName = "display_spatial_reference.jsp";
ServletContext context = session.getServletContext();
File currentPath = new File(context.getRealPath(request.getServletPath()));
String dir = currentPath.getParent();
String fullPath = java.net.URLEncoder.encode(dir + "/" + fileName);
%>