OAF doesn't readily expose the Controller Servlet's HttpRequest and HttpResponse objects so you need to extract it from the OAPageContext object via: HttpServletResponse response = (HttpServletResponse) pageContext.getRenderingContext().getServletRes