I have GWT RPC service and i am doing something like this inside my RemoteServiceServlet :
this.getThreadLocalResponse().sendRedirect("http://127.0.0.1:8888/myapp/errorServlet");
this works , hovewer when i am trying to redirect to jsp page (http://127.0.0.1:8888/ErrorPage.jsp) nothing happens. (no errors)
and my url is 100% correct.
I have tried to use also
getServletConfig().getServletContext().getRequestDispatcher(URL).forward(request,response);
but result was the same.
Please help
GWT-rpc reponse cannot be HTML – it has to be a proper RPC response. I think you will get an error which is being ignored in your GWT code – check the onFailure method of your AsyncCallback or the GWT log if you are using dev mode or the javascript console if you are trying the production mode.