I am trying to get JSF setup to use files with a html extension.
If I use a .xhtml pattern (
) and name my
However, if I change this to *.html and naming the files with a .html extension, I get 500 an error
Did you mean that you renamed the physical .xhtml
files to .html
? You should not have the need to do that. Rename them back to .xhtml
and keep using the .html
in URLs. The FacesServlet
will automatically load the right XHTML file associated with the URL.
If you really need to give them the .html
extension, then you'd need to change the default suffix to .html
as well. Add the following entry to web.xml
to achieve that:
javax.faces.DEFAULT_SUFFIX
.html