/** * Sets the content type for the HTTP response.<p> * * This method is required since JSP's are handled in a special way for included template elements, * so {@link javax.servlet.ServletResponse#setContentType(java.lang.String)} won't work.<p> * * Please note that the content type set this way is never cached in the Flex cache, * so you must make sure to not cache the element when you use this method.<p> * * @param type the type to set * * @see javax.servlet.ServletResponse#setContentType(java.lang.String) */ public void setContentType(String type) { // set the content type on the top level response m_controller.getTopResponse().setContentType(type); }
/** * Sets the content type for the HTTP response.<p> * * This method is required since JSP's are handled in a special way for included template elements, * so {@link javax.servlet.ServletResponse#setContentType(java.lang.String)} won't work.<p> * * Please note that the content type set this way is never cached in the Flex cache, * so you must make sure to not cache the element when you use this method.<p> * * @param type the type to set * * @see javax.servlet.ServletResponse#setContentType(java.lang.String) */ public void setContentType(String type) { // set the content type on the top level response m_controller.getTopResponse().setContentType(type); }
HttpServletResponse res = CmsFlexController.getController(getJsp().getRequest()).getTopResponse(); res.setContentType("application/octet-stream"); res.setHeader(
res = controller.getTopResponse(); res.setContentType(contentType);
HttpServletResponse response = controller.getTopResponse(); response.setHeader("Cache-Control", "no-store"); response.setHeader("Pragma", "no-cache");
HttpServletResponse res = CmsFlexController.getController(getJsp().getRequest()).getTopResponse(); res.setContentType("text/comma-separated-values"); String filename = "export_users" + new Random().nextInt(1024) + ".csv";
HttpServletResponse res = controller.getTopResponse();
HttpServletResponse topRes = m_controller.getTopResponse();
HttpServletResponse topRes = m_controller.getTopResponse();
HttpServletResponse res = controller.getTopResponse();
HttpServletResponse res = controller.getTopResponse();
res = controller.getTopResponse(); res.setContentType(contentType);