开发者

Pretty Faces Mapping problem

开发者 https://www.devze.com 2023-01-20 06:56 出处:网络
i using PrettyFaces for Pretty URL but i have first problem with PrettyFaces: my mapping in pretty-config.xml

i using PrettyFaces for Pretty URL but i have first problem with PrettyFaces: my mapping in pretty-config.xml

     <url-mapping id="home">
  <pattern value="/" />
  <view-id>/faces/index.jsf</view-id>
  </url-mapping>

i have one file index.xhtml when deploy on server url http://localhost/myproject it not found index.jsf what's happen ?

mapping in web.xml of prettyfaces

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

GlassFish Message for problem

HTTP Status 404 - /index.jsf not found

type Status report

message/index.jsf not found

descriptionThe requested resource (/index.jsf not found) is not avai开发者_如何学Clable.


The index.jsf file doesn't exist. Make it in the root directory of your project (http://localhost/myproject/index.jsf).

0

精彩评论

暂无评论...
验证码 换一张
取 消