Our application JSF2/weblogic10.3.4 has different client folders deployed in root context as below.
app->webapp->ClientA->index.jsf
->ClientB->index.jsf
If the user request our app with client name, we need to display the corresponding index.jsf.
If the browser request is http://server/ClientA, we should display http://server/ClientA/index.jsf
If the browser request is http://server/ClientB, we should display http://server/ClientB/index.jsf
How can we achieve this?
Register it as
<welcome-file>in theweb.xml.You only need to create empty files with exactly that name next to the existing
index.xhtmlfiles in the same folder, so that the container is fooled that those files really exist, otherwise you will still get 404s.An alternative is to replace the
FacesServletURL pattern of*.jsfby*.xhtmlso that you never need to fiddle with virtual URLs.