please help me to solve this problem. After login user will refer to the Search home page, which in a WEB-INF folder. I have no web.xml file and here is my code: please help me to correct it.
$("#login").click(function(){
var hashPassword = hex_md5($("#password").val());
var requestData = {
username: $('#username').val(),
password: hashPassword,
action: "login",
};
$.ajax({
type : "POST",
url : "/Library/dispatcher",
data : requestData,
}).done(
function(responseData){
if(responseData.error){
console.log(responseData.error);
$('#unsuccess').show();
}
else{
if(responseData.success){
// window.location.href = "/Library/WEB-INF/search.html";
window.location.href = "/WEB-INF/search.html";
}
else{
$('#unsuccess').show();
}
}
});
});