What are the request and response implicit objects?

The request implicit object is an instance of HTTPServletRequest, and response is an instance of HTTPServletResponse objects. They are available in a similar way to the request and response object passed to the doGet and doPost methods in servlets. They are passed to the _jspService() method of the generated servlet at request-time.

  • The request object retrieves the values that the client browser passed to the server during an HTTP request such as headers, cookies or parameters associated with the request. You can find an example in "How to Use the methods of the request object extracting form data?".
  • The response can be used for the same purposes as the HttpServletResponse in a servlet, such as creating HTTP Headers, creating cookies, setting content type and redirecting workflow. You can find an example in How to handle cookies in JSP?.

Printer-friendly version Printer-friendly version | Send this 
article to a friend Mail this to a friend

Previous Next vertical dots separating previous/next from contents/index/pdf Contents

  |   |