response.sendRedirect() from jsp:include being ignored?
问题 I've got a jsp file, which includes another jsp file to check some values and such: <jsp:include page="setup.jsp" /> Inside the setup.jsp I've got some conditional code which determines if some needed values are set in the session and if not redirects them to a different page. Or at least it is supposed to, but the redirect seems to be getting ignored. System.err.println("Redirecting!"); response.sendRedirect("http://www.google.com"); return; I see "Redirecting!" get logged to the console,