Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 美丽面孔映射问题_Jsf_Prettyfaces - Fatal编程技术网

Jsf 美丽面孔映射问题

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

我使用PrettyFaces来创建漂亮的URL 但我对漂亮脸蛋的第一个问题是: 我在pretty-config.xml中的映射

     <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.