This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Servlets and the fly likes SERVLET Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "SERVLET" Watch "SERVLET" New topic


Sudhakar Gaharwar

Joined: Oct 10, 2005
Posts: 15
What's the exact difference between forward and SendRedirect...I have one doubt is that can we use SendRedirect for other context in other web server.pls clear my doubt?
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
Check out the Servlet collections in the below link.

Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Eddy Lee Sin Ti
Ranch Hand

Joined: Oct 06, 2005
Posts: 135
This already being discussed. Check this out Similar Thread

SCJP, SCWCD, SCJWS, IBM 700,IBM 701, IBM 704, IBM 705, CA Clarity Technical<br /> <br /><a href="" target="_blank" rel="nofollow"></a>
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
forward and send redirect both does the same thing, the only difference is forward happens on server (client doesn't know, does something special happen) and in case of send redirect client can see different URL on browser.

Am I right?
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

The behaviour is similar the intent and the outcomes are different. You should look at the links provided and see when to use each type.
I agree. Here's the link:
subject: SERVLET
jQuery in Action, 3rd edition