开发者

Pretty Faces Mapping problem

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜