3 Replies Latest reply on Feb 4, 2007 7:15 PM by Fernando Montaño

    Browsing application context path always redirect "home.seam

    Fernando Montaño Expert

      Hi everybody.

      I have a very strange behaviour that I don't know if it is a bug or I'm misunderstanding something.

      The scenario is:

      1.- In the web.xml I've configured this:

       <servlet-name>Faces Servlet</servlet-name>

      2.- My index.html file contents:
       <meta http-equiv="Refresh" content="0; URL=login.jsf">

      3.- Because I'm using facelets I have the login.xhtml with the respective login form.

      Well, after I deploy the application (context path is "app") I tried this in the browser:
      When I did this I get an HTTP 404 error saying me that the app/home.seam is not available.

      But, what I suppose I should get is the login.jsf page instead the above error.
      Then when I type this in the browser:
      http://localhost:8080/app/index.html all works fine, the login.jsf is loaded successful.

      -Someone knows why the home.seam is always called in this scenario ?
      - is it hard coded?
      - is there any way in order to configure it?

      Any help will be appreciated.

      Thanks in advance.