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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Forwarding and redirecting
how to do port forwarding in java?
findForward not forwarding to the page
JSP forward not working
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015