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
HttpServletResponsein 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?.
Most Recent jsp Faqs
- How to get the real requested URI from inside the error page?
- Can I define a method in a JSP page?
- What is the difference between request.getParameter() and request.getAttribute()?
- What is difference between page and pageContext in JSP pages?
- How to config a JSP file in web.xml?
- What is the difference between jsp:forward and response.sendRedirect?
- How to retrieve values from HTML form input elements in JSP?
Most Viewed jsp Faqs
- What is difference between page and pageContext in JSP pages?(10521)
- How to config a JSP file in web.xml?(8592)
- How to disable browser caching for a specific JSP?(7122)
- How to retrieve values from HTML form input elements in JSP?(6900)
- What is the difference between jsp:forward and response.sendRedirect?(5432)
- How to get the current JSP page name?(5407)
- What is the difference between request.getParameter() and request.getAttribute()?(4989)