A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Forwarding and redirecting
Joined: Feb 13, 2002
Mar 13, 2002 09:27:00
is there any bright person out there, who could explain me the difference in forwarding between
request.getRequestDispatcher("/targetPage.jsp").forward( request, response);
response.sendRedirect( response.encodeRedirectURL( "/targetPage.jsp") );
Both works fine in a certain context, but I cannot get the clue.
Thanks for any comment.
<a href="http://www.brainsandbytes.de" target="_blank" rel="nofollow">Brains and Bytes</a> − eTechnology- and Marketing-Services
Joined: Mar 06, 2001
Mar 13, 2002 17:39:00
They are very very different. Search this and the
forum for "forward sendRedirect" and you will get many links like
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Forwarding and redirecting
findForward not forwarding to the page
how to do port forwarding in java?
JSP forward not working
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013