Hi,
I'm using JSF 2.0 to build a website. Eclipse generated the following web.xml file
...
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
...
So to view my application i have to visit "localhost/myApp/faces/index.xhtml". I would prefer to view it directly by visiting "localhost/myApp/index.xhtml"
I see two options for this:
Changing the web.xml to the following
...
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
...
Or setting up an index.xhtml in my base dir that does a javascript/meta direct to faces/index.xhtml.
Which do you think is better ? Or is there another way how you would do it?