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

redirect() vs getRequestDispatcher()

Shubha Krishna

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

Joined: Jan 10, 2002
Posts: 62279

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

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Consider Paul's rocket mass heater.
subject: redirect() vs getRequestDispatcher()