dcsimg
Request, Response, Forward and Redirect
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   chennad_dulla
Posted On:   Friday, December 21, 2001 11:22 AM

Hi,

What is the diff betw Request,
Response, Forward and Redirect.
In which situations i have to use forward and response.

Please can any one help me.

Re: Request, Response, Forward and Redirect

Posted By:   Bozidar_Dangubic  
Posted On:   Monday, December 24, 2001 06:07 AM

you get a request from the client and you send a response back to the client. client communicates what needs to done in the request and server gives the results of the request in the response. you use forward if you want another resource to handle a request and send response to the client. so if one of your servlets gets a request and you know that there is another servlet which should handle that request, you forward the request and response to that servlet (or a JSP or some other resource). you redirect when you want to send a temporary redirect response to the client using the specified redirect location URL.
About | Sitemap | Contact