Hi All,
I'm trying to read in a parameter set in my sitemap in a flowscript:
SITEMAP
<map:match pattern="ldap/*" type="wildcard">
<map:call function="displayuid">
<map:parameter name="Uid" value="chris"/>
<map:parameter name="Testing" value="blah"/>
</map:call>
<map:generate src="documents/displayldap.jxt" type="jxt"/>
<map:serialize type="html"/>
</map:match>
FLOWSCRIPT
function displayuid() {
var e = cocoon.parameters;
for ( var i in e) {
cocoon.log.debug("MYPARAM name: '" + i +
"' value: '" + cocoon.request.getParameter(i) + "'");
}
}
And all I'm getting in my flow debug log is:
MYPARAM name: 'Uid' value: 'null'
MYPARAM name: 'Testing' value: 'null'
Am I reading the flow script API docs
http://cocoon.apache.org/2.1/userdocs/flow/api.html
incorrectly? I've tried all manner of the getParameter and can't figure
it out.
Am I missing something?
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
|