|
|
@@ -30,6 +30,7 @@ import javax.servlet.ServletException; |
|
|
|
import javax.servlet.http.HttpServlet; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import javax.xml.XMLConstants; |
|
|
|
import javax.xml.transform.Result; |
|
|
|
import javax.xml.transform.Source; |
|
|
|
import javax.xml.transform.Transformer; |
|
|
@@ -96,6 +97,8 @@ public class FopServlet extends HttpServlet { |
|
|
|
public void init() throws ServletException { |
|
|
|
this.uriResolver = new ServletContextURIResolver(getServletContext()); |
|
|
|
this.transFactory = TransformerFactory.newInstance(); |
|
|
|
transFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, ""); |
|
|
|
transFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET, ""); |
|
|
|
this.transFactory.setURIResolver(this.uriResolver); |
|
|
|
//Configure FopFactory as desired |
|
|
|
// TODO: Double check this behaves properly!! |