title: Code works in HTML, but not JSP
body: <p>The code below is not working in jsp page. What could be the error?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
     &lt;head&gt;
        &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no"&gt;
        &lt;meta charset="utf-8"&gt;
        &lt;title&gt;Geocoding service&lt;/title&gt;
        &lt;script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"&gt;&lt;/script&gt;
        &lt;script&gt;         
           function codeAddress() {         
               var address = document.getElementById("address").value;                      
               var geocoder = new google.maps.Geocoder();
               geocoder.geocode( { 'address': address}, function(results,status) {
               var location = results[0].geometry.location;
               alert('LAT: ' + location.lat() + ' LANG: ' + location.lng());});
           }
           google.maps.event.addDomListener(window, 'load', codeAddress);     
        &lt;/script&gt;   
     &lt;/head&gt;
     &lt;body&gt;
        &lt;div id="panel"&gt;       &lt;input id="address" type="textbox" value="Tembhurkheda, Maharashtra, INDIA"&gt;       &lt;input type="button" value="Geocode" onclick="codeAddress()"&gt;     &lt;/div&gt;
     &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>