2 Replies Latest reply on Sep 14, 2009 9:56 AM by ludgertheile

    Document Store - using with dynamic and static resources

    pdhaigh

      I'm trying to use Seam Excel to dynamically create spreadsheets (but this same issue applies to .pdf too).


      If you map the file extension:




           <servlet-mapping>
               <servlet-name>Document Store Servlet</servlet-name>
               <url-pattern>*.xls</url-pattern>
           </servlet-mapping>



      Then any requests for actual .xls files you have in your webapp will fail. I can understand this failing (although it would be nice if it didn't!).


      So, I want to try and map the Document Store Servlet to only get involved on certain requests and leave static resources alone. Therefore I want to map on a directory rather than the file extension. I believe this should work:



           <servlet-mapping>
               <servlet-name>Document Store Servlet</servlet-name>
               <url-pattern>/dxls/*</url-pattern>
           </servlet-mapping>     



      However, it doesn't. It throws you straight to the error page configured for the document store in components.xml with no logged error.


      This is Seam 2.1.1.GA.


      Any ideas?