aspose file tools*
The moose likes Servlets and the fly likes request and response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "request and response" Watch "request and response" New topic
Author

request and response

sitaram irrinki
Ranch Hand

Joined: Feb 16, 2005
Posts: 158
Using requestdispatcher.include(request,response) we can include the
content generated by another servlet/html in the response.
The included servlet makes use of this request/response object pair.

But what is the use of this request/response pair if we are including an Html page(may be we generally don't include an Html page from a servlet but in case if we do so).
Is this just the syntax that we have to follow or is there any reason for this.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: request and response