我花了很多时间,但我无法修复我在PrettyFaces配置中到底做错了什么。我在pretty-config.xml中有以下规则
<url-mapping id="administrator_comments">
<pattern value="/comments/{someVariableName}" />
<view-id value="/faces/backend/comments/comments" />
</url-mapping>现在,我想使用下面的url来测试它:
http://localhost:8080/myapplication/comments/test我得到了404 NOT FOUND。我做错了什么?我什么都试过了,但不明白为什么会这样。我正在做完全相同的PrettyFaces示例。
发布于 2015-05-04 06:35:31
您缺少EL表达式的#字符和视图的文件扩展名。尝试:
<url-mapping id="administrator_comments">
<pattern value="/comments/#{someVariableName}" />
<view-id value="/faces/backend/comments/comments.xhtml" />
</url-mapping>https://stackoverflow.com/questions/30007010
复制相似问题