cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Søren Krum <>
Subject Parameters in block protocol
Date Fri, 17 Apr 2009 13:17:16 GMT

I try an upgrade of an web app from cocoon 2.1 to 2.2, and eger as i am, 
i want to get it all fine in small blocks.

Calling blocks works fine so far, but...As ever there is a special case 
where i want to pass some parameters to the called block:

i tried it as follows:

<map:generate type="servletService" 

    <map:parameter name="service"     


and in the central sitemap:
<map:match pattern="portal-login-service">
  <map:generate src="resource/internal/login.xml" />
    src="resource/internal/login.xsl" />
    <map:parameter name="resource" value="request-param:redirect-url" />
  <map:serialize type="xml"/>
but it looks like the login.xsl never sees the resource...

Ideas? The transformer i used is xalan, request parameters and session 
parameters are true.

A quick method to log the parameters passed in to the transform process? 
Or even better, to the portal-login-service?

i found some niche infos in the log:

2009-04-17 13:48:34,938 btpool0-1 DEBUG components.ServletSource - 
Trying to create a servlet connection for location 

what looks like the parameter is passed...

Does i have to add the pattern from "portal-login-service" to something 
like "portal-login-service*" so the parameter does not get lost?

Best Regards

Søren D. Krum
Systemutvikler/system developer
+ 47 73557859

There are 10 different kind of people in the world, those who understand binary and those
who don't

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message