On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
Would you provide an example of how you set-up your web.xml file?

One other thing you might check is to be sure you've got things in the
correct order in your web.xml file.    filters, filter-mappings,
listeners, servlets, servlet-mappings.

   <context-param>
       <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
       <param-value>true</param-value>
   </context-param>

[...]

  <filter>
                <filter-name>MyFacesExtensionsFilter</filter-name>
                
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
                <init-param>
          <param-name>uploadMaxFileSize</param-name>
          <param-value>100m</param-value>
          <description>Set the size limit for uploaded files.
              Format: 10 - 10 bytes
                      10k - 10 KB
                      10m - 10 MB
                      1g - 1 GB
          </description>
      </init-param>
      <init-param>
          <param-name>uploadThresholdSize</param-name>
          <param-value>100k</param-value>
          <description>Set the threshold size - files
                  below this limit are stored in memory, files above
                  this limit are stored on disk.

              Format: 10 - 10 bytes
                      10k - 10 KB
                      10m - 10 MB
                      1g - 1 GB
          </description>
      </init-param>
  </filter>

[...]

   <!-- extension mapping for serving page-independent resources
(javascript, stylesheets, images, etc.)  -->
   <filter-mapping>
             <filter-name>MyFacesExtensionsFilter</filter-name>
             <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
   </filter-mapping>

[...]

   <!-- extension mapping for adding <script/>, <link/>, and other
resource tags to JSF-pages  -->
   <filter-mapping>
             <filter-name>MyFacesExtensionsFilter</filter-name>
             <!-- servlet-name must match the name of your
javax.faces.webapp.FacesServlet entry -->
             <servlet-name>FacesServlet</servlet-name>
   </filter-mapping>

[...]

   <listener>
       
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
   </listener>

[...]

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

   <servlet-mapping>
       <servlet-name>FacesServlet</servlet-name>
       <url-pattern>/faces/*</url-pattern>
   </servlet-mapping>

Reply via email to