[mapguide-users] How correctly pass "MAPNAME" in Ajax?

ar_gaeta ar_gaeta at yahoo.it
Thu Nov 18 11:10:07 EST 2010


Hi all,
I'm trying to work with active selction, and for that I'm follow the
MapGuide Developer's Guide (page 48-52), that show the code in .php.
I'm working on MGOS 2.2 with Apache/Tomcat, so I have to develop my code in
Java.

My problem is that my .jsp page doesn't take a valid "MAPNAME" information
from the task_pane.
I've copied my code from the
"javasamples/interacting_with_layers/layer_visibility.jsp", but also this
tools doesn't work well and give me this error:

"Resource was not found:
Session:3894e224-f32a-11df-8000-005056c00008_en_7F0000010AFC0AFB0AFA//unknown.Map"

My index.html (that calls the scripts in .jsp) passes the information as
follow:
    <%
      String sessionId = request.getParameter("SESSION");
      String mapName = request.getParameter("MAPNAME");
      if (mapName == null) mapName = "unknown";
    %>
    ......
   ...a href="interacting_with_layers/task_pane.jsp?SESSION=<%= sessionId
%>&MAPNAME=<%= mapName %>">Interacting With Layers...

And then the file "task_pane.jsp" call the "layer_visibility.jsp" passing it
the variables "SESSION" and "MAPNAME" as before.

I post here the original code of "layer_visibility.jsp":
http://osgeo-org.1803224.n2.nabble.com/file/n5752239/layer_visibility.jsp
layer_visibility.jsp 

Thanks for your help!

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-correctly-pass-MAPNAME-in-Ajax-tp5752239p5752239.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list