【发布时间】:2013-01-04 11:22:35
【问题描述】:
在 JSF 中,我可以将 Faces Servlet 映射到各种 URL 模式。例如。到*.xhtml。
我想要的是将 Faces Servlet 映射到 no 扩展。意思是,如果我的 Web 根目录中有一个页面 customers.xhtml,我想使用 http://example.com/customers 请求这个。
我查看了How do I configure JSF url mappings without file extensions? 的问题,这在某种程度上有效,但它需要我单独映射我拥有的每个文件(如果我错了,请纠正我)。
如何将我的所有.xhtml 文件一次性映射到 Faces Servlet,而不必单独映射它们?
【问题讨论】:
标签: java jsf jsf-2 url-rewriting facelets