wood burning stoves 2.0*
The moose likes Servlets and the fly likes Request dispatcher and send redirect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Request dispatcher and send redirect" Watch "Request dispatcher and send redirect" New topic
Author

Request dispatcher and send redirect

kiran kumar sharma
Greenhorn

Joined: Mar 19, 2012
Posts: 10
When we forward or redirect a request using request dispatcher or response sendRedirect to servlet, which method of the servlet is called..?
Praveen Thaliyil
Greenhorn

Joined: May 17, 2012
Posts: 10

Hi kiran ,



please go to http://www.roseindia.net/help/java/s/forward-vs-redirect.shtml
hope it will help you.
Anurag Verma
Ranch Hand

Joined: Mar 30, 2012
Posts: 124

for redirection, it is always a GET request, for forwarding from a servlet to another, whatever type of request the forwarding servlet has recieved, will be passed on to the forwarded servlet.
kiran kumar sharma
Greenhorn

Joined: Mar 19, 2012
Posts: 10
Thank you..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Request dispatcher and send redirect