Hi

I use MyFaces, Tomahawk, but not Trinidad.

I have *.jsp and *.xhmtl (Facelets) files in my project. How i make the mapping that both suffixes are supported? I want something like this:

Physical file           Mapped to
-------------           ---------
page1.jsp       -->  http://localhost:8080/myproject/page1.jsf

page2.xhtml     -->  http://localhost:8080/myproject/page2.xhtml



In my web.xml i habe these entries, but i doesn't work like desired:

<servlet>
        <servlet-name>FacesServlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
        <servlet-name>FacesServlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
        <servlet-name>FacesServlet</servlet-name>
        <url-pattern>*.xhtml</url-pattern>
</servlet-mapping>

<context-param>
        <param-name>facelets.VIEW_MAPPINGS</param-name>
        <param-value>*.xhtml</param-value>
</context-param>
<context-param>
        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
        <param-value>.jsp</param-value>
</context-param>

Michael

Reply via email to