0 Replies Latest reply on Feb 27, 2009 10:59 AM by Felix Sima

    Custom error pages

    Felix Sima Newbie

      Hello.

      I would like to use custom error pages in my rich faces application for some HTTP error codes.

      In my web.xml I have put:

      ...
      <servlet>
       <servlet-name>Faces Servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
       </servlet>
       <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.faces</url-pattern>
       </servlet-mapping>
      ...
      <error-page>
       <error-code>404</error-code>
       <location>/errors/404.faces</location>
      </error-page>


      but I get the browser's 404 error page when the page is not found.

      Is there any solution/workaround to this problem?
      Thank you in advance.

      Best regards,
      Felix Sima
      Use www.jaaava.com - A Google for Java