Change /faces from ADF application url

There is an easy way to identify ADF production applications from the URL pattern. Most of the ADF applications are using the default configuration for JSF request and response processing and it generates /faces url pattern in application url .

There is an easy way to customize ADF application URL from web.xml file. Below configuration shows the default configuration.

  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern><b>/faces/*</b></url-pattern>
  </servlet-mapping>

And application URL would be http://127.0.0.1:7101/contextpath/faces/Home

Change /faces to your custom name. For eg, I am using /adffaces in my web.xml .

  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/adffaces/*</url-pattern>
  </servlet-mapping>

ADF application URL would be  http://127.0.0.1:7101/contextpath/adffaces/Home

No comments:

Post a Comment