Skip to main content

JSF tags not interpreted in .jsf file

No replies
Joined: 2010-08-25

I created a web application (in NetBeans) and specified a jsf page as its welcome page; I noticed that the web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="" xmlns:xsi="" xsi:schemaLocation="">
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-name>Faces Servlet</servlet-name>

- referred to "faces/index.xhtml", so I changed the reference to "faces/index.jsf". When I ran the application, the tags in index.jsf had not been interpreted - they arrived as "<h:form > ..."

So, I tried to change the name of index.jsf to index.xhtml (and the reference in web.xml accordingly); and now it works. Why is that? Where does it specify that the file must be called something.xhtml?