Implementation  Response buffering

Chapter 22: Creating Java Servlets

Static content

A RequestDispatcher instance would typically be used for servlets and JSPs, but it can also be used for static content. If the servlet engine forwards a request to a static content RequestDispatcher, the RequestDispatcher must set the response status, the response headers, and the response data. If a static content RequestDispatcher is called to set the data for the current request, it only needs to return the content of the static page.





Copyright © 2005. Sybase Inc. All rights reserved. Response buffering

View this book as PDF