aspose file tools
The moose likes Servlets and the fly likes redirect() vs getRequestDispatcher() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "redirect() vs getRequestDispatcher() " Watch "redirect() vs getRequestDispatcher() " New topic
Author

redirect() vs getRequestDispatcher()

Shubha Krishna
Greenhorn

Joined: Aug 18, 2006
Posts: 13
Can anybody help me to know the difference between response.redirect() and request.getRequestDispatcher()? Thanks...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56168
    
  13

One is used to perform a forward or include, the other a redirect.

Perhaps a more expansive question would yield a more expansive answer.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: redirect() vs getRequestDispatcher()