title: jQuery ajax call "Not Found" error
body: <p>Hi I have been trying to make a ajax call to a JSP page. Here's the piece of JS function.</p>
  
  <pre><code>&lt;script&gt;
  $(function(){
  
    function myAjaxCall() {
       $.ajax({
          type: "post",
          url: "jsp/common/myJavascriptPage.jsp",
          dataType: "text",
          success: 
              function (result) {
                 alert("Got the result: " + result);
              },
              error: function (xhr,status,error) {
                 alert("Status: " + status);
                 alert("Error: " + error);
                 alert("xhr: " + xhr.readyState);
              },
              statusCode: {
                 404: function() {
                     alert("page not found");
                 }
              }
          });
     }
   });
   &lt;/script&gt;
  </code></pre>
  
  <p>I am constantly getting file not found, even though JSP exists in the URL mentioned. Please note that I am calculating the JSP file location relative to that of webapp directory.</p>
  
  <p>I tried using the normal AJAX calls (without jQuery), but ended up with same error.</p>
  
  <p>Could you please help me understand why is it not able to locate the jsp?</p>