Solved

The complete story about forward and redirect

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
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.

707 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

16 Experts available now in Live!

Get 1:1 Help Now