5 Replies Latest reply on Feb 1, 2010 7:57 AM by tausuahmed

    Using PDF with SEAM 2.1.1

    varac

      Hi


      I have upgraded from Seam 2.0.2SP1 to Seam 2.1.1GA.  Have two questions?  I have changed the components.xml to use document instead of pdf, I have copied the itext jars into the WEB-INF/lib directory and I have added servlet settings and mappings into the web.xml.  This all previously worked with my previous version of Seam but since I have upgraded it does not present the document for download.


      components.xml

      ...
      xmlns:document="http://jboss.com/products/seam/document"
      ...
      http://jboss.com/products/seam/document http://jboss.com/products/seam/document-2.1.xsd
      ...
      <document:document-store use-extensions="true" error-page="/error.spt"/>



      web.xml

             <servlet>
                <servlet-name>Document Store Servlet</servlet-name>
                <servlet-class>org.jboss.seam.document.DocumentStoreServlet</servlet-class>
           </servlet>
           <servlet-mapping>
                <servlet-name>Document Store Servlet</servlet-name>
                <url-pattern>*.pdf</url-pattern>
           </servlet-mapping>