users@glassfish.java.net

Re: strange welcome-files behavior...

From: Shing Wai Chan <Shing-Wai.Chan_at_Sun.COM>
Date: Mon, 02 Nov 2009 10:04:01 -0800

The index.jsp is coming from default-web.xml.
We may have a problem in the ordering in this case.
Shing Wai Chan

vince kraemer wrote:
> I have a web app that user JSF 2.0 and maps all faces/* to the
> FacesServlet (pretty standard stuff).
>
> The web apps web.xml file has a welcome-file-list that has one
> entry... an entry for faces/index.xhtml
>
> If the app only has /index.xhtml, this app displays it (after being
> processed by the FacesServlet..)
>
> If there is a /index.jsp as well as a /index.xhtml, the index.jsp file
> is displayed.
>
> This seems a bit unexpected... It the server was able to default to
> http://localhost:8080/CR/faces/index.xhtml when there wasn't an
> index.jsp file in the app, why would it decide to use index.jsp
> instead when it is present in the app.
>
> Thanks,
> vbk
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>