1 Reply Latest reply on Oct 16, 2013 2:33 AM by Tomas Remes

    jboss-seam-2.3.1.Final\examples\booking's initial mapping setting

    TOMO IKEA Newbie

      Hi,

      i can confirm http://localhost:8080/seam-booking/home.seam

      ( after mvn clean package / mvn jboss-as:deploy )

      using Example of jboss-seam-2.3.1.Final

       

      Then examing application configuration contents

        jboss-seam-2.3.1.Final\examples\booking

      consists of

        /booking-ear

        /booking-ejb

        /booking-web

        /booking-tests

       

      Top page  http://localhost:8080/seam-booking/home.seam

      is automatic forward result one from <meta http-equiv="Refresh" content="0; URL=home.seam"> defined at

      booking-web\src\main\webapp\index.html.

       

      Where this " URL=home.seam " was defined  ?

       

      Seems to be <url-pattern>*.seam</url-pattern> was mapped to javax.faces.webapp.FacesServlet in web.xml

       

      -- web.xml -------------------------

          <servlet>

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

              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

              <load-on-startup>1</load-on-startup>

          </servlet>

             

          <servlet-mapping>

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

              <url-pattern>*.seam</url-pattern>

          </servlet-mapping>

      --------------------------------------

      this frame work may be useful but hard to examine details.