aspose file tools*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "SERVLET" Watch "SERVLET" New topic
Author

SERVLET

Sudhakar Gaharwar
Greenhorn

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="http://eddyleesinti.blogspot.com" target="_blank" rel="nofollow">http://eddyleesinti.blogspot.com</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
Rancher

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SERVLET