svn commit: r990335 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/FopPdfViewHandler.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r990335 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/FopPdfViewHandler.java

lektran
Author: lektran
Date: Sat Aug 28 09:47:15 2010
New Revision: 990335

URL: http://svn.apache.org/viewvc?rev=990335&view=rev
Log:
Set the response content type to what was provided in the view-map definition instead of hard-coding application/pdf, allows for any type of document supported by fop to be rendered by the view handler.

Modified:
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/FopPdfViewHandler.java

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/FopPdfViewHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/FopPdfViewHandler.java?rev=990335&r1=990334&r2=990335&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/FopPdfViewHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/FopPdfViewHandler.java Sat Aug 28 09:47:15 2010
@@ -66,7 +66,7 @@ public class FopPdfViewHandler extends J
         }
 
         // set the content type and length
-        response.setContentType("application/pdf");
+        response.setContentType(contentType);
         response.setContentLength(out.size());
 
         // write to the browser