Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why doesn Response.sendRedirect() work after the binding of Tomcat with Apache server?

0
Posted

Why doesn Response.sendRedirect() work after the binding of Tomcat with Apache server?

0

Location: http://www.jguru.com/faq/view.jsp?EID=445939 Created: Jun 26, 2001 Author: Oren Deri (http://www.jguru.com/guru/viewbio.jsp?EID=63019) Question originally posed by Tan HN (http://www.jguru.com/guru/viewbio.jsp?EID=40344 Tomcat communicates with the Apache server using localhost. When tomcat gets the request it’s from the Apache on localhost, so it also redirects the response to localhost. Try the following:response.sendRedirect( “http://” + request.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123