I have a soap message (axis) coming into a server. Because I don't
want to handle certain types of requests, I have created a servlet
filter to do the checking for me. When the servlet filter kicks off
all is good until I try to redirect the request to the third server.
The redirect does not work. Here is the code from my filter..
....
//I check the request for the condition that I'm looking for
// if the condition exists, then i want to redirect this request to
another server..
HttpServletResponse servResp = (HttpServletResponse)response;
servResp.sendRedirect("http://otherserver:8080");
return;
...
Any ideas??
deadsea - 04 Oct 2005 12:57 GMT
> servResp.sendRedirect("http://otherserver:8080");
I would first try a url with a fully qualified domain
name.servResp.sendRedirect("http://otherserver.example.com:8080/");
Also when you say that it doesn't work, how do you know that it doesn't
work? Are you sniffing the network and you don't see a 302 status and
a Location header? Does the client not actually follow the redirect?
If the status is 302 and there is a Location header but the client
doesn't follow it, I would suggest debugging the client.
Stephen
http://ostermiller.org/utils/
deadsea - 04 Oct 2005 12:58 GMT
> servResp.sendRedirect("http://otherserver:8080");
I would first try a url with a fully qualified domain
name.servResp.sendRedirect("http://otherserver.example.com:8080/");
Also when you say that it doesn't work, how do you know that it doesn't
work? Are you sniffing the network and you don't see a 302 status and
a Location header? Does the client not actually follow the redirect?
If the status is 302 and there is a Location header but the client
doesn't follow it, I would suggest debugging the client.
Stephen
http://ostermiller.org/utils/