hey !
I recogiced an interesting behaviour of coocoon by transforming a JSP to
PDF !
I want to render a JSP (Struts Tags) with cocoon !
Everything works fine !
1. A servlet arrange the data an puts the beans to the request.
2. forward to the coocoon Servlet
...
RequestDispatcher rd =
tServletContext().getRequestDispatcher( "/cocoon/printBasket" );
rd.forward( req, res );
...
[web.xml]
...
<!-- Cocoon Servlet Mapping -->
<servlet-mapping>
<servlet-name>Cocoon2</servlet-name>
<url-pattern>/cocoon/*</url-pattern>
</servlet-mapping>
...
3. piping a print.jsp
[sitemap.xmap]
...
<map:match pattern="cocoon/printBasket">
<map:generate type="jsp" src="print/printBasket.jsp"/>
<map:transform src="stylesheets/print2fo.xsl"/>
<map:serialize type="fo2pdf"/>
</map:match>
...
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''''''
''' But I recogniced an interesting behaviour:
''' By the executing the pipe, the JSP it compiled 3 times and the servlet
is executed 3 times!
''' It seems like cocoon jumps back 2 times !!
''' Is that usual ? Can I do something to get a better performance ?
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''''''''''
Thanks for Help
the Datas :
- Windows 2000
- JBoss-2.2.2_Tomcat-3.2.2
- StrutsFramework
- coocon 2
- Servlet.jar v 2.2
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>