Hi, i know it's an issue which has been discussed many times but I still haven't found an answer for my special case.
Actually, i am working on a project that uses jsf-ri 1.1 and struts tiles 1.1. The tiles view handler has been declared in the faces-config.xml and it works fine. Except that we can't do a redirect from a managed bean we get the following error: "response has already been committed " We just wanted to display a generic error page in case of technical failure but i haven't found out how to do it. I tried the following strategy: 1) buffer everything and redirect to an error page: - set flush attribute of all tiles:insert to false. - set autoflush to false and set a buffer size large enough (our pages are very light) using the following directive in our layout. <%@ page autoFlush="false" buffer="30kb" %> - our code intercept exceptions and does manually a redirect ( response.sendRedirect()) but we still have the issue (response already committed). 2) Throw a runtime exception and let it be handled but jsf servlets and the web container: - in the web.xml we handle http error page 500 <error-page> <error-code>500</error-code> <location>errorPate.jsp</location> </error-page - in our tiles layout we declare a jsp error page : <%@ page isErrorPage="false" errorPage="errorPage.jsp"%> and create an error page (errorPage.jsp) whose page directive set the errorPage attribute to true. The problem a response with http status 200 is sent with the exception's stack trace in the body. I guess it is still because the response has already been committed and status code already been set. The jsp error page mecanism does not work neither. How can we achieve such a simple goal : display an error page in case of technical exception ? Tiles seems to write the http buffer and flush it and thus we can't redirect the execution flow from our managed beans. Thanks in advance and sorry for the long post. --------------------------------------------------------------- More info: - all pages with jsf extension are handled by the jsf ri servlet. So we access a jsf page for example with view.jsf uri The pages declares a <tiles:insert definition="viewdef" flush="false"/> The viewdef is declared in the tiles definition file and inherits from a predefined layout. The jsp pages are under /WEB-INF directoy.