myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nebinger, David" <>
Subject RE: URL for home page(index.jsp) without redirect
Date Fri, 08 Dec 2006 05:14:19 GMT
No, create an index.jsf as an empty file in the root of the war.  Then set the welcome file
entry to index.jsf in the web.xml file.
If you're using '.faces' as your standard extension, replace the '.jsf' above with '.faces'.
Basically the welcome file entry will tell the servlet that if no file is specified, then
use the one specified.  However, the one specified must be a real file from the root of the
web app, so the index.jsf file must exist (although it can be empty).
Once the servlet determines that it should load index.jsf (or index.faces), when it routes
through the dispatcher the faces servlet will intercept and treat it as a faces request, ignoring
the empty index.jsf file that you created.

-----Original Message-----
From: Dave []
Sent: Thursday, December 07, 2006 11:42 PM
To: MyFaces Discussion
Subject: Re: URL for home page(index.jsp) without redirect

two index.jsf (s)?
I tried one index.jsf(home page) and empty index.jsp. It did not work.

Andrew Robinson <> wrote:

put "index.jsf" as your welcome page, then create an empty index.jsf
file in that directory (it just needs to exist for the container to
find it)

On 12/6/06, Dave wrote:
> Hello, home page URL
> the URL first access index.jsp(JSP page) which then redirect to a JSF page.
> Any better way to avoid a redirect? Thanks!
> ________________________________
> Access over 1 million songs - Yahoo! Music Unlimited.


Check out the  <*>
all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.

View raw message