I know it must be possible. But I don't seem to be able to get it to
work. It looks like if you use suffix based URL mapping in your web.xml
like the following
 
<servlet-mapping>
    <serlvet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
</servlet-mapping>
 
You URL will have to end up with .faces suffix like
/myapp/welcome.faces. In this case, the suffix will be replaced by .jsp
before rendering. I would like to use path based mapping such as
 
<servlet-mapping>
    <serlvet-name>Faces Servlet</servlet-name>
    <url-pattern>/sample/*</url-pattern>
</servlet-mapping>
 
and be able to use URL like /myapp/sample/welcome. However, it does not
work, because in this case, there is no attempt by the framework to add
the default suffix .jsp to the viewId, as a result, I got a 404 resource
not available error.

Reply via email to