How do I configure JSF url mappings without file extensions?

后端 未结 2 584
小鲜肉
小鲜肉 2020-12-14 03:56

Most tutorials propose a default JSF configuration similar to the following web.xml:


    javax.faces.DEFAULT_SUFFIX&l         


        
2条回答
  •  借酒劲吻你
    2020-12-14 04:26

    you can create url mapping like this create faces-config.xml file in WEB-INF folder

    
    
    
    
       
            /jsf/demoapp
            
                demoapp
                /demoapp.xhtml
            
       
    
    
    

    in web.xml you have to do 2 entries

        
            jsfServlets
            javax.faces.webapp.FacesServlet
            1
        

        
            jsfServlets
            /jsf/*
        

提交回复
热议问题