[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>
<filter>
@@ -1162,7 +1162,16 @@
<filter-name>Seam Servlet Filter</filter-name>
<url-pattern>*.pdf</url-pattern>
</filter-mapping>
-</programlisting>
+
+<servlet>
+ <servlet-name>Document Store Servlet</servlet-name>
+ <servlet-class>org.jboss.seam.pdf.DocumentStoreServlet</servlet-class>
+</servlet>
+
+<servlet-mapping>
+ <servlet-name>Document Store Servlet</servlet-name>
+ <url-pattern>*.pdf</url-pattern>
+</servlet-mapping></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 @@
</components>
</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