<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
This works on my machine, with the Sheboygan data installed:<br>
<a class="moz-txt-link-freetext" href="http://localhost/mapguide/mapviewernet/ajaxviewer.aspx?weblayout=Library://Samples/Sheboygan/Layouts/SheboyganJsp.WebLayout&username=Anonymous&password=">http://localhost/mapguide/mapviewernet/ajaxviewer.aspx?weblayout=Library://Samples/Sheboygan/Layouts/SheboyganJsp.WebLayout&amp;username=Anonymous&amp;password=</a><br>
<br>
Since you are using Jsp, it should be:<br>
<a class="moz-txt-link-freetext" href="http://localhost/mapguide/mapviewerjava/ajaxviewer.jsp?weblayout=Library://Samples/Sheboygan/Layouts/SheboyganJsp.WebLayout&username=Anonymous&password=">http://localhost/mapguide/mapviewerjava/ajaxviewer.jsp?weblayout=Library://Samples/Sheboygan/Layouts/SheboyganJsp.WebLayout&amp;username=Anonymous&amp;password=</a><br>
<br>
You can paste the url into a browser to test it, before inserting it as
an embedded map.<br>
If you are using the bundled Apache server, you should use:<br>
<a class="moz-txt-link-freetext" href="http://localhost:8008/mapguide/mapviewerjava/ajaxviewer.jsp?weblayout=Library://Samples/Sheboygan/Layouts/SheboyganJsp.WebLayout&username=Anonymous&password=">http://localhost:8008/mapguide/mapviewerjava/ajaxviewer.jsp?weblayout=Library://Samples/Sheboygan/Layouts/SheboyganJsp.WebLayout&amp;username=Anonymous&amp;password=</a><br>
<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
dorra2007 skrev:
<blockquote cite="mid:15184538.post@talk.nabble.com" type="cite">
  <pre wrap="">That is what I have done.
And I have always invalid repositorty type.



Kenneth, GEOGRAF A/S wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">You can only display WebLayouts with the viewer.
You must also enter the full path to the weblayout:

Library://mylayout.WebLayout


Regards, Kenneth, GEOGRAF A/S


dorra2007 skrev:
    </pre>
    <blockquote type="cite">
      <pre wrap="">i have an error message: Invalid repository type.
Whereas the map is displayed in mapguide studio.

NB: I use postgis as data source.



Kenneth, GEOGRAF A/S wrote:
  
      </pre>
      <blockquote type="cite">
        <pre wrap="">Yes, the mapviewerajax should be configured with the correct default
page.
If you use the "mapviewerjava", you must add ajaxviewer.jsp page name.
The full url becomes:

/mapguide/mapviewerjava/ajaxviewer.jsp?weblayout=Library://mylayout.WebLayout&amp;username=Anonymous&amp;password=



Regards, Kenneth, GEOGRAF A/S



dorra2007 skrev:
    
        </pre>
        <blockquote type="cite">
          <pre wrap="">  Thank you Kenneth for the code segment; 
But there is no folder named mapviewerajax; so I have changed it to
mapviewerjava. I have tried it and the result is the title (This is my
webpage with an embedded map!)+ blank: the map isnot displayed (instead
of
the map lays a blank square.)
Have you an idea about what the problem can be?


Kenneth, GEOGRAF A/S wrote:
  
      
          </pre>
          <blockquote type="cite">
            <pre wrap="">Yes, it is possible.

My favorite  method is to embed the Map in an Iframe:
&lt;html&gt;
&lt;body&gt;
&lt;h1&gt;This is my webpage with an embedded map!&lt;/h1&gt;
&lt;iframe 
src="/mapguide/mapviewerajax/?weblayout=Library://mylayout.WebLayout&amp;username=Anonymous&amp;password=" 
width="100%" height="100%"&gt;&lt;/iframe&gt;
&lt;/body&gt;
&lt;/html&gt;

By adding commands, do you mean from code?
What sort of commands do you want to add, and why is Studio not an
option?

Regards, Kenneth, GEOGRAF A/S



dorra2007 skrev:
    
        
            </pre>
            <blockquote type="cite">
              <pre wrap="">Hello all;
I have one precise question: Is it possible to display the mapguide
map
in
my own web page?

If yes; what should I do? And how could I add commands without using
mapguide studio?

Thank you in advance.
  
      
          
              </pre>
            </blockquote>
            <pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    
        
            </pre>
          </blockquote>
          <pre wrap="">  
      
          </pre>
        </blockquote>
        <pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    
        </pre>
      </blockquote>
      <pre wrap="">  
      </pre>
    </blockquote>
    <pre wrap="">_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>