Response.sendRedirect() x RequestDispatcher.forward
posted 9 years ago
Hello there! As far as I know (and I bet I'm wrong
Redirect adds a Header to the response (I guess Location) and the browser then redirects the user to the new location right? Also forward can be used only within the same context.
Now, I have a server running Jetty and need to redirect the user to a tomcat machine, but I need to add some headers and attributes to the request, how can I do that? With redirect it does not work, and with forward (well, not the same context...)