How to use .jsf extension in URLs?

前端 未结 3 1811
借酒劲吻你
借酒劲吻你 2020-12-31 13:04

I\'m developing a JSF 2 web application. For prestige purpouses I would like that every URL ends with .jsf extension. Now it ends with .xhtml. If I

3条回答
  •  再見小時候
    2020-12-31 13:47

    you can add this code in your web.xml, and you can run your pages ends with xhtml, jsf or faces
     
        Faces Servlet
        javax.faces.webapp.FacesServlet
        1
      
    
      
        Faces Servlet
        *.jsf
      
      
        Faces Servlet
        *.faces
      
      
        Faces Servlet
        *.xhtml
      
    

提交回复
热议问题