web.xml mapping is
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
ErrorHandler servlet makes request
RequestDispatcher view = request.getRequestDispatcher("error.jsp");
view.forward(request, response);
jsp error-page contains the style
body {
background-image: url(err-images/fon.png);
}
How to display background image in error-page when url-pattern is wrong, for example
http://localhost:8080/WEBSearchPrime_JB/wrong/register.xhtml
well, at leats one solution is to upload images to external hosting and using the absolute urls :)