myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nebinger, David" <dnebin...@tbbgl.com>
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 [mailto:javaone9@yahoo.com]
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 <andrew.rw.robinson@gmail.com> 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
>
> http://www.youdomain.com/
>
> 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  <http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta>
all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.


Mime
View raw message