Jsf 美丽面孔映射问题
我使用PrettyFaces来创建漂亮的URL 但我对漂亮脸蛋的第一个问题是: 我在pretty-config.xml中的映射Jsf 美丽面孔映射问题,jsf,prettyfaces,Jsf,Prettyfaces,我使用PrettyFaces来创建漂亮的URL 但我对漂亮脸蛋的第一个问题是: 我在pretty-config.xml中的映射 <url-mapping id="home"> <pattern value="/" /> <view-id>/faces/index.jsf</view-id> </url-mapping> index.jsf文件不存在。将其放在项目的根目录中(http://localhost/myp
<url-mapping id="home">
<pattern value="/" />
<view-id>/faces/index.jsf</view-id>
</url-mapping>
index.jsf
文件不存在。将其放在项目的根目录中(http://localhost/myproject/index.jsf).索引.jsf文件不存在。将其放在项目的根目录中(http://localhost/myproject/index.jsf).如果你删除了漂亮面孔的东西,那么它工作吗?不,我只是将/faces/index.jsf改为/faces/index.xhtml。如果你删除了漂亮面孔的东西,那么它工作吗?不,我只是将/faces/index.jsf改为/faces/index.xhtml
<!-- PrettyFaces-->
<filter>
<filter-name>Pretty Filter</filter-name>
<filter-class>com.ocpsoft.pretty.PrettyFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Pretty Filter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<!-- End PrettyFaces-->
HTTP Status 404 - /index.jsf not found
type Status report
message/index.jsf not found
descriptionThe requested resource (/index.jsf not found) is not available.