response

The JSP implicit object response represents the javax.servlet.http.HttpServlet Response object, which defines an object that provides the JSP with the capability to manipulate HTTP-protocol–specific header information and return data to the client. The request object is passed into the generated _jspService() method. You can see how it is passed in the following code snippet:

public void _jspService(HttpServletRequest request,
  HttpServletResponse  response)
  throws IOException, ServletException {

The most common use for the response object is writing HTML output back to the client browser. You would normally call the response.getWriter() method, but the JSP API abstracts you from this by providing the implicit out object, which will ...

Get Pure Java Server Pages™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.