I wanna redirect the request that contains "X-Requested-With: XMLHttpRequest" in the header. I know cant i do
response.sendRedirect(url)
method in ajax call, so i tried:
So i understand you have a servlet, can you explain what exactly your servlet do and what you want to do? it seems to me like you try to do something in the wrong way.