Solved

The complete story about forward and redirect

Posted on 2007-11-20
1
147 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how can I backup my incomplete website from hostgator? 3 60
Using YubiKey with REST API application 2 108
Problem to file 3 67
DNS @ Naked Domain Record 5 69
A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

896 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now