Solved

The complete story about forward and redirect

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to generate a csr to request an intermediate ca on os x 3 34
Problem to go to page 12 93
How to include jquery as a global using webpack 1 142
change time in cron 4 78
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 …
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 …
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

777 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