cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Re: Passing a parameter to flow from sitemap
Date Thu, 19 Jan 2006 10:27:08 GMT
After further testing, it appears that :

 <map:parameter name="userid"  value="{session-attr:userID}"/>

only works when it called on OUTSIDE of authenticated

i.e. it is NOT accessible in this situation:

  <map:act type="auth-protect">
    <map:parameter name="handler" value="ind-handler"/>    

    <map:match pattern="db/test-*">
      <map:generate src="docs/blank.xml"/>
      <map:transform src="stylesheets/page2html.xsl">
        <map:parameter name="userid" value="{session-attr:userID}"/>
    <map:serialize type="html"/>	

So; the question becomes how to access session attribute
data inside of a protected pipeline (bearing in mind the
user ID is needed to "get into" the pipeline in the first place!)


>>> 2006/01/18 05:02:04 PM >>>

> function main {
>   var thisUser = cocoon.parameters["userid"];
>   var thisTest = cocoon.parameters["test"];
> ...
> }

I pondered about this some time and the only thing I could think of is: case-sensitivity.
indeed, in the sitemap you are talking about userID and in the flowscript about userid. Does
help? I can't really imagine that it is a bug in the way parameters are handled by flowscript..

Kind regards,

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

This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
CSIR E-mail Legal Notice 
CSIR Copyright, Terms and Conditions 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.

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

View raw message