Q:

Ajax Query Doesn't Gets Successful

I have this Ajax query to a html page but it always fails.  The html page is something like this 
only has a <h1> tab with some text.
Can anyone tell me why this is happening
$.ajax({
    url: "http://localhost:8080/FindMySize/src/main/webapp/WEB-INF/jsp/result.html",
    success: function(data) {
        $('#stage').html(data);
    },
    error: function(data) {
        $('#stage').html("AS");
    }

});

A:

Your javascript is OK.
The problem is your Java structure, the file result.html here has not relationship with jsp. You shouldn't put it inside WEB-INF. See this SO answer for more clear understanding.

The  WEB-INF node is not part of the public document tree of the application. No file contained in the WEB-INF directory may be served directly to a client by the container

Solution: Move your html to public folder (where you store your javascript, css, img,..)

