cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morrison, John" <John.Morri...@uk.experian.com>
Subject RE: Rendering a jsp : JSP it compiled 3 times -> performance pro blem
Date Thu, 24 Jan 2002 14:39:25 GMT
This would have been better sent to cocoon-users...

> -----Original Message-----
> From: Kai Ulrich [mailto:ulrich@pnpconsult.com]
> Sent: Thursday, 24 January 2002 2:35 pm
> To: cocoon-dev@xml.apache.org
> Subject: Rendering a jsp : JSP it compiled 3 times -> performance
> problem
> 
> 
> If 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 =
> etServletContext().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. piped to the 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 have a little performance Pronblem:
> - One thing attracted attention : By the executing the pipe, 
> the JSP it
> compiled 3 times and the servlet  is executed 2 more times!
> Is that usual ? Can I do thome thing to get a better performance ?
> 

What are you using to view the resulting pdf? IE? Try a simple
wget and see what happens...

J.


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message