You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by Stefan Kost <s....@webmacher.de> on 2002/01/09 10:13:04 UTC

Re: FO Tag Library (problem with jsp1.1)

Hi Hi,

answering my own post. The problem (see cited part at the bottom) is due
to that jsp 1.1 does not allow nested body tags witch flush their
buffers. It's been said that this will work with jsp 1.2 (as found in
tomcat 4.X), but I am unable to verify this at the moment as there are a
few bugs in the tomcat 4.x class loader (class cast exception for
xerces.jar).
Does anyone know a workaround for this ?
<bugging>
  And errm, what about taglib inclusion ? (there have be two +1s)
  - if   you have anything against it, please tell me - so that
  we can argue about it.
</bugging>

Stefan
> Hi,
> 
> I have now written a FO taglibray and it sort of works. You can write
> things like :
> <%@ page session="false" %>
> <%@ taglib uri="http://jakarta.apache.org/taglibs/fo-1.0" prefix="fop"%>
> <fop:process style="pdf">
>   <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>     ...
>   </fo:root>
> </fop:process>
> 
> and you'll get a pdf beamed right into your browser.
> Next I've tried things like :
> <%@ page session="false" %>
> <%@ taglib uri="http://jakarta.apache.org/taglibs/fo-1.0" prefix="fop"%>
> <fop:process style="pdf">
>   <xsl:apply xsl="/fop/index.xsl">
>     <page>
>       <title>
>         pdf-test
>       </title>
>       <content>
>         Hallo
>       </content>
>     </page>
>   </xsl:apply>
> </fop:process>
> 
> but all I get is :
> javax.servlet.ServletException: TransformerException
> 	at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
> 	at
> fop._0002ffop_0002findex_0002ejspindex_jsp_5._jspService(_0002ffop_0002findex_0002ejspindex_jsp_5.java:145)
> 
> ...
> 
> Root cause:
> 
> javax.servlet.jsp.JspException: TransformerException
> 	at org.apache.taglibs.xsl.ApplyTag.doEndTag(ApplyTag.java:360)
> 	at
> fop._0002ffop_0002findex_0002ejspindex_jsp_5._jspService(_0002ffop_0002findex_0002ejspindex_jsp_5.java:116)
> 
> 
> The funny thing is, when I just comment out the fop-tag, the xsl works
> fine and I get the fo-xml as the page result.
> Any ideas ? 
> 
> Stefan
> -- 
> 
>  < W E B M A C H E R > 
> EDV+INTERNETSERVICE GMBH
> 
> POST: August Bebel Str. 69
>       04275 Leipzig
> 
> FON:  +49 341 30 34 832
> FAX:  +49 341 30 34 840
> WEB:  www.webmacher.de
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
-- 

 < W E B M A C H E R > 
EDV+INTERNETSERVICE GMBH

POST: August Bebel Str. 69
      04275 Leipzig

FON:  +49 341 30 34 832
FAX:  +49 341 30 34 840
WEB:  www.webmacher.de


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>