添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Create
cancel
Showing results for
Search instead for
Sign up Log in

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.

Hi @JonasGomes

  1. Next time i think it will be better if you rise a question in the developer community https://community.developer.atlassian.com/
  2. 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.
AUG Leaders

Atlassian Community Events