Customize FacesServlet to get rid of .xhtml extension

前端 未结 2 1880
萌比男神i
萌比男神i 2020-12-03 04:03

I have Login.xhtml and Home.xhtml. I configured the url pattern in web.xml as follows


   

        
2条回答
  •  一生所求
    2020-12-03 04:34

    Take a look at prettyfaces: Pretty URLs for JavaServer Faces ,

    Look at the 2. Create pretty-config.xml example in the main page

    And take a look at the Chapter 2. Get Started

提交回复
热议问题