Previous Topic: Access MethodNext Topic: Access Method


HttpServletResponse

HttpServletResponse is a class that contains HTTP protocol-specific data. It is usually sent to the browser using the HTTP protocol. See the J2EE documentation for a list of the methods and properties of this class.

Accessing methods of the HttpServletResponse class in Web Generation applications is risky and could potentially cause runtime errors. For example, invoking the methods sendRedirect or sendError circumvents essential execution paths in the Gen runtime that impact history handling. Accessing certain objects may also cause the servlet container to throw exceptions. These include streams or writers via getOutputStream or getWriter. Also rest or resetBuffer may cause the servlet container to throw exceptions.