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
>>> [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
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
[EMAIL PROTECTED]
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]