Re: How CXF helps to redirect to non-matching http request to a static HTML page

2016-03-06 Thread Sergey Beryozkin
Hi If CXFServlet has a wildcard pattern then another idea might be to catch 404 with ExceptionMapper and then redirect with the help of RequestDispatcherProvider (ex, the mapper returns Error bean in Response and the provider is configured to map Error to error.html) - in this case

Re: How CXF helps to redirect to non-matching http request to a static HTML page

2016-03-05 Thread Jose MarĂ­a Zaragoza
Hi You could use a custom error page for 404 error code Look at error-page and error code in web.xml 2016-03-05 6:23 GMT+01:00 Sumit Arora : > As CXF provides configuration to set default page from : > > > static-welcome-file > /main.html >