Hi team,
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:
httpRequest.getRequestDispatcher("myservlet").forward(req, res);
//or
httpRequest.getRequestDispatcher("myservlet").include(req, res); but the same problem, the client is not redirected to my servlet.
and too tried to return a xml response with this:
<?xml version="1.0" encoding="UTF-8"?><partial-response><redirect url="jiraurl/plugins/servlet/nopermission"></redirect></partial-response>
but nothing happens.
I'm stuck in this problem for weeks, if have any that can help me i will be very grateful.
Thanks.