cocoon-users mailing list archives

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

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:
*******************************8<----------------------

<map:generate type="servletService" 
src="servlet:central:/portal-login-service?redirect-url={url-encode:{request:requestURI}?{request:queryString}}"

label="debug">
    <map:parameter name="service"     
value="servlet:central:/portal-login-service?redirect-url={url-encode:{request:requestURI}?{request:queryString}}"

/>
</map:generate>

*******************************8<----------------------
and in the central sitemap:
*******************************8<----------------------
<map:match pattern="portal-login-service">
  <map:generate src="resource/internal/login.xml" />
  <map:transform
    src="resource/internal/login.xsl" />
    <map:parameter name="resource" value="request-param:redirect-url" />
  <map:serialize type="xml"/>
</map:match>
*******************************8<----------------------
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 
servlet:central:/portal-login-service?redirect-url=%2Fapplication%2FapplicationListEdit%3Fcocoon-view%3Ddebug

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
UNINETT FAS
+ 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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message