I was trying to forward a request to a JSF page:
request.getRequestDispatcher(redirectURI).forward(request, response);
I have a proc.xhtml
under pages
.
If I set:
redirectURI = "pages/proc.xhtml";
and it works fine.
However if I use the absolute URL including the context path:
redirectURI = "/context/pages/proc.xhtml";
It does not work and give me this exception:
com.sun.faces.context.FacesFileNotFoundException: /context/pages/proc.xhtml Not Found in ExternalContext as a Resource.
(and yes I set the Faces servlet URL pattern to be *.xhtml
already)