1
我使用PrettyFaces爲漂亮的URL 但我有PrettyFaces第一個問題:我的 映射漂亮-config.xml中漂亮的面孔映射問題
<url-mapping id="home">
<pattern value="/" />
<view-id>/faces/index.jsf</view-id>
</url-mapping>
我有一個文件的index.xhtml 當在服務器上部署url http://localhost/myproject 它沒有找到index.jsf 會發生什麼?
映射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的消息的web.xml中爲問題
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.
如果你刪除漂亮的面孔的東西,那麼它的工作? – 2010-10-18 08:05:08
不,我只是改變 /faces/index.jsf 到 /faces/index.xhtml –
MYE
2010-10-18 09:07:49