【发布时间】:2015-02-11 13:51:45
【问题描述】:
我用我的 jsf 应用程序尝试了漂亮的面孔。URL 没有改变。我按照网站上提到的步骤进行操作。
pom.xml
<dependency>
<groupId>org.ocpsoft.rewrite</groupId>
<artifactId>rewrite-servlet</artifactId>
<version>2.0.12.Final</version>
</dependency>
<dependency>
<groupId>org.ocpsoft.rewrite</groupId>
<artifactId>rewrite-config-prettyfaces</artifactId>
<version>2.0.12.Final</version>
</dependency>
我在 WEB-INF/
中添加了 pretty-config.xml
漂亮的配置.xml
<pretty-config xmlns="http://ocpsoft.org/schema/rewrite-config-prettyfaces"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ocpsoft.org/schema/rewrite-config-prettyfaces
http://ocpsoft.org/xml/ns/prettyfaces/rewrite-config-prettyfaces.xsd">
<url-mapping id="login">
<pattern value="/login" />
<view-id value="/pages/unsecure/login.jsf" />
</url-mapping>
</pretty-config>
我的本地项目网址(完整网址)
我使用 myfaces2.2.7、spring/security、hibernate、tomcat7
我需要做其他设置吗?我错过了什么。我不明白。
我到底应该怎么做?提前谢谢..
更新:
我没有收到任何错误。只是不起作用。网址不变..
【问题讨论】:
标签: jsf jsf-2.2 myfaces prettyfaces