Solved

The complete story about forward and redirect

Posted on 2007-11-20
1
154 Views
Last Modified: 2011-04-14
I know the basic difference that response.sendRedirect sends back the header and RequestDispatcher.forward just forwards request to another resource.
The big question are there other methods to do these kind of operations other than the above 2 methods.
Also Is session lost in response.sendRedirect.What is the complete picture when it comes to forwarding/redirect to a new page in or outside the app ?
0
Comment
Question by:amhicraig
1 Comment
 
LVL 27

Accepted Solution

by:
mrcoffee365 earned 125 total points
ID: 20327775
You seem to have the basic idea about forward vs. redirect.  This page documents what you've said in a little more detail:
http://www.javapractices.com/Topic181.cjp

There are no other methods within the servlet container and the HTTP protocol.  You can write your own version of forward or redirect, but it's not clear what the value of that would be.

Maybe if you explained why you don't want to use the existing forward and redirect methods?
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP Register global 21 96
pdf file 7 91
Setting Up Local Lan Web Server 1 64
Web Fraud scenarios to PoC F5  web fraud prevention 7 48
Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question