cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Szpyrka" <JSzpy...@lukas.com.pl>
Subject Generated XSP problem
Date Wed, 31 Oct 2001 15:45:50 GMT
Hi

Sorry for my poor english.

I have the problem. In my sitemap I have:

   <map:match pattern="test/*.xsp">
     <map:generate type="serverpages" src="test/{1}.xsp"/>
     <map:transform src="dynamic-page2html.xsl"/>
     <map:serialize type="html"/>
   </map:match>

It work very good.

But if I replace it by

   <map:match pattern="_get_file_/**">
     <map:generate type="file" src="{1}"/>
     <map:serialize type="xml"/>
   </map:match>

   <map:match pattern="test/*.xsp">
     <map:generate type="serverpages" src="cocoon:/_get_file_/test/{1}.xsp"/>
     <map:transform src="dynamic-page2html.xsl"/>
     <map:serialize type="html"/>
   </map:match>

it every time (request) transforms xsp into java (cache does not work properly?) and next
into class. More over pattern "_get_file_/**" is matched (and executed ofcourse) THREE (3)
times.

Why so strange construction? I have to make www service where XSP pages will be generated
(model, view, logic in my application are defineable). So "file" generator will be replaced
in future by my own generator and some transformators.

My cocoon version is 2.0rc1. Java version Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cn130-20001124
(JIT enabled: jitc)). Tomcat version 3.2.1.

Thank You.

Jacek Szpyrka 


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


Mime
View raw message