1 Reply Latest reply on Mar 22, 2006 1:19 AM by gavin.king

    some question about seam web.xml configurations.

      Hi
      Thank you for reading my post.
      there are some configuration in seam web.xml file that i can not understand.
      first of all , in normal case we use a url pattern like : /faces/* for faces Servlet mapping
      but in your web.xml you used *.seam



      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>


      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.seam</url-pattern>
      </servlet-mapping>

      ,
      how i can configure the web.xml to works like normal jsf application ?


      for example if i change the above configuration to :


      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>

      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>


      what will seam redirect filter looks like ?
      I mean , how i should change the folwoing one



      <filter-name>Seam Redirect Filter</filter-name>
      <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>


      <filter-mapping>
      <filter-name>Seam Redirect Filter</filter-name>
      <url-pattern>*.seam</url-pattern>
      </filter-mapping>