I am having a problem with a response.sendRedirect() command - I am using the command to send control from one server to another, in the same domain. Control is supposed to go from server A to the location coded in the url on server B(this url (absolute) is passed in the sendRedirect command). However, when I execute the program, the redirect will not happen - I have even coded print statements where control leaves one server and then goes to the next, and it never gets to server B! If, instead, I go directly to the url on server B in a web browser, that appears with no issues in the browser, and the print statements print out as normal.
I'm confused as to what is happening and why - both servers are tomcat servers. No messages show up in any log to indicate an error somewhere when I execute the program. Does anyone have any ideas?