Not sure if this fits your needs, but I've accomplished this by using a
dummy jsp page that redirects to my 'real' index.xhtml file.  Index.jsp as
well as index.xhtml are in my root web directory.

    <welcome-file-list>
        <welcome-file>
            index.jsp
        </welcome-file>
    </welcome-file-list>


Tim


-----Original Message-----
From: Jeff Bischoff [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 02, 2007 1:02 PM
To: MyFaces Discussion
Subject: /faces/* servlet mapping and welcome files

Hey guys, quick question:

Does anyone have welcome files working successfully with the /faces/* 
servlet mapping? I previously used a *.faces extension mapping, and had 
welcome files working with a dummy index.faces file. But now I am 
converting to facelets and followed the advice from the archives to get 
them to coexist [1]. Now that I'm using /faces/* I have both facelets 
and JSP working just fine together except my welcome-file doesn't work 
(results in a blank page shown). I've tried different paths combinations 
in the welcome-file-list, with no luck so far. Latest entry is pasted 
below. Thanks for any tips!

<welcome-file-list>
    <!-- OLD <welcome-file>pages/public/index.faces</welcome-file>-->
    <welcome-file>faces/pages/public/index.xhtml</welcome-file>
</welcome-file-list>

[1] http://www.nabble.com/Facelets-tf2005321.html#a5509212

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to