preventing access to xhtml
We have an application that using JSF and xhtml. I'm relatively new and I've been tasked to come up with a way to prevent users from seeing the xhtml.
Under normal circumstances the xhtml files are translated into html files. The user can look at a page like:
http://localhost:8080/company/organizations.html
and it is returned and displayed just fine. However, when a user enters a URL directly, instead of using the application, and they enter the name with the xhtml extension:
http://localhost:8080/guardian/organizations.xhtml
they get back the xml. Is there some way to prevent the user from doing this? Is there a way to take that URL and turn it into:
http://localhost:8080/guardian/organizations.html
instead?
Any suggestions are appreciated. I can't seem to find anything online. I've tried playing in the faces-config.xml to create a navigation-rule, but that didn't work.
thanks,
Nate

