[jboss-cvs] jboss-seam/doc/reference/en/modules ...

Norman Richards norman.richards at jboss.com
Sat Feb 10 11:46:57 EST 2007


  User: nrichards
  Date: 07/02/10 11:46:57

  Modified:    doc/reference/en/modules  itext.xml
  Log:
  add servlet config
  
  Revision  Changes    Path
  1.6       +15 -2     jboss-seam/doc/reference/en/modules/itext.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: itext.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/itext.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- itext.xml	7 Feb 2007 23:49:44 -0000	1.5
  +++ itext.xml	10 Feb 2007 16:46:57 -0000	1.6
  @@ -1150,7 +1150,7 @@
           <para> The default implementation serves PDF documents from a generic URL, <literal>/seam-doc.seam</literal>.
               Many browsers (and users) would prefer to see URLs that contain the actual PDF name like
                   <literal>/myDocument.pdf</literal>. This capability requires some configuration. To serve PDF files, all
  -            *.pdf resources should be mapped to the Seam Servlet Filter, as shown here:</para>
  +            *.pdf resources should be mapped to the Seam Servlet Filter and to the DocumentStoreServlet:</para>
   
           <programlisting>
   &lt;filter&gt;
  @@ -1162,7 +1162,16 @@
       &lt;filter-name&gt;Seam Servlet Filter&lt;/filter-name&gt;
       &lt;url-pattern&gt;*.pdf&lt;/url-pattern&gt;
   &lt;/filter-mapping&gt;
  -</programlisting>
  +
  +&lt;servlet&gt;
  +    &lt;servlet-name&gt;Document Store Servlet&lt;/servlet-name&gt;
  +    &lt;servlet-class&gt;org.jboss.seam.pdf.DocumentStoreServlet&lt;/servlet-class&gt;
  +&lt;/servlet&gt;
  +
  +&lt;servlet-mapping&gt;
  +    &lt;servlet-name&gt;Document Store Servlet&lt;/servlet-name&gt;
  +    &lt;url-pattern&gt;*.pdf&lt;/url-pattern&gt;
  +&lt;/servlet-mapping&gt;</programlisting>
   
           <para> The <literal>useExtensions</literal> option on the document store component completes the functionality
               by instructing the document store to generate URLs with the correct filename extension for the document type
  @@ -1175,6 +1184,10 @@
   &lt;/components&gt;
   </programlisting>
   
  +           
  +        
  +
  +        
           <para> Generated documents are stored in conversation scope and will expire when the conversation ends. At that
               point, references to the document will be invalid. To You can specify a default view to be shown when a
               document does not exist using the <literal>errorPage</literal> property of the documentStore. </para>
  
  
  



More information about the jboss-cvs-commits mailing list