tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charlie C.L. King" <clk...@gmail.com>
Subject Re: Use of JSF view in welcome file list
Date Tue, 08 Nov 2005 07:42:55 GMT
you *MUST* use real files in <welcome-file> instead of a mapped path.

On 11/8/05, Tim Dean <tim.dean@earthlink.net> wrote:
>
> Hello,
>
> I am trying to configure a welcome file list in my Tomcat-deployed
> web app so that a Java Server Faces (JSF) view is used as the welcome
> file. My web.xml file contains the following:
>
> <welcome-file-list>
> <welcome-file>main.faces</welcome-file>
> </welcome-file-list>
>
> As well as the following JSF servlet configurations:
>
> <servlet>
> <servlet-name>FacesServlet</servlet-name>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>FacesServlet</servlet-name>
> <url-pattern>*.faces</url-pattern>
> </servlet-mapping>
>
> I have been unable to get this working no matter what I have tried.
> Whenever I request a directory within the web application's context,
> Tomcat shows a directory listing instead of the JSF view I've
> identified in the welcome file list.
>
> Can anyone explain why this is not working and, more importantly,
> what I must do to use JSF views as my welcome page(s)?
>
> Thanks,
>
> - Tim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


--
Regards, Charlie
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message