I wanna redirect the request that contains “X-Requested-With: XMLHttpRequest” in the header. I know that response.sendRedirect(url) method is not possible in ajax call, so i tried:
but the same problem, the client is not redirected to my servlet.
and too i tried to return a xml response with this:<?xml version="1.0" encoding="UTF-8"?>
but nothing happens.
I’m stuck in this problem for weeks, if have any that can help me i will be very grateful.