title: GeoServer Request not working
body: <p>I am trying to add map into my web page. Shapefiles are uploaded/published in GeoServer. When request is made, not map is displayed in webpage. Following is code.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript" src="OpenLayers.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  
      var map;
  
      function init() {
          map = new OpenLayers.Map('map');
          var wms = new OpenLayers.Layer.WMS(
          "OpenLayers WMS",
          "http://localhost:8080/geoserver/New_York_Roads/wms",
          { layers: 'basic' }
          );
  
          map.addLayers([wms]);
          map.zoomToMaxExtent();
      }
  
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body onload="init()"&gt;
  &lt;div id="map" style="width: 600px; height: 300px"&gt;
  
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>