<%
String sessionId = request.getParameter("SESSION");
String mapName = request.getParameter("MAPNAME");
try
{
// --------------------------------------------------//
// Basic initialization needs to be done every time.
MapGuideJavaApi.mgInitializeWebTier(webconfigFilePath);
// Get the user information using the session id,
// and set up a connection to the site server.
MgUserInformation userInfo = new MgUserInformation(sessionId);
MgSiteConnection siteConnection = new MgSiteConnection();
siteConnection.open(userInfo);
// Finished basic initialization.
// --------------------------------------------------//
// Query the spatial reference system used for the map.
MgMap map = new MgMap(siteConnection);
map.open(mapName);
String srs = map.getMapSRS();
// Format it and display it in the task pane.
out.println("
Map " + map.getName() + " uses this reference system: