how to Hide JSF URL after the application name?

前端 未结 2 1965
旧时难觅i
旧时难觅i 2021-02-10 03:47

i have a jsf application and i want hide the url and keep just the name of application in URL while swiching between pages .

thats the url that i have :



        
2条回答
  •  甜味超标
    2021-02-10 04:15

    Try using prettyFaces.

    PrettyFaces is an OpenSource URL-rewriting library with enhanced support for JavaServer Faces – JSF 1.1, 1.2 and 2.0 – enabling creation of bookmark-able, pretty URLs.

    See also this UrlRewriteFilter with Glassfish a couple ways more on how to do this.

    1. Front your GlassFish instance with Apache and use mod_rewrite
    2. Use Tuckey's Url Rewrite Filter

提交回复
热议问题