I had a problem when using servlet with jquery ajax. When I put the html file which contains the js code in the same project with the servlet, it will work. However, when I used this html on another machine and used the URL:http://192.168.1.5:8084/****/Servlet
for the ajax, I could not get anything.
$.ajax({
url:'http://192.168.1.5:8084/****/Servlet',
data: ajaxdata,
type:'GET',
dataType:'text/html',
//contentType: "text/html",
success:function(json) { }
});
So any ideas? Thanks.