cocoon-users mailing list archives

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

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

only works when it called on OUTSIDE of authenticated
pipelines(s).

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:transform>                    
    <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!)

Thanks
Derek

>>> Geert.Josten@daidalos.nl 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.
And 
indeed, in the sitemap you are talking about userID and in the flowscript about userid. Does
that 
help? I can't really imagine that it is a bug in the way parameters are handled by flowscript..

Kind regards,
Geert

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




-- 
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
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
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
HelpDesk@csir.co.za.


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


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


Mime
View raw message