【发布时间】:2011-09-26 16:17:38
【问题描述】:
我的网站使用 JSF,网址似乎是 http://mysitename.com/wompower6/faces/home.xhtml
我使用的是 prettyfaces,所以如果我在 pretty-config.xml 中使用以下内容,我可以将名称更改为 http://mysitename.com/wompower6/home
<url-mapping id="home">
<pattern value="/home" />
<view-id value="/faces/home.xhtml" />
</url-mapping>
我的问题是
如何删除应用程序 名称 wompower6 ,以便 url 变成 mysitename.com/home ?
在我的 web.xml 中,我有
<welcome-file>home.xhtml</welcome-file>, 但这似乎不起作用。什么时候 我输入 mysitename.com,它没有 映射到 home.xhtml。任何线索 在这里?
【问题讨论】:
标签: url jsf url-rewriting friendly-url prettyfaces