I am trying to get a handle on a key function in the PetStore example;
the sitemap handles a call to any function in the sample as follows:
<map:match pattern="*.do">
<map:call function="main">
<map:parameter name="page" value="{1}"/>
</map:call>
</map:match>
in the petstore.js code, there is the corresponding match:
function main(funName) {
var fun = this[funName];
...
}
when I use the Rhino JavaScript debugger, it shows clearly
that the value of "funName" in the main(funName) is that of
the function being called. However, it is not clear as to where/
how that value becomes associated with the function parameter.
In my application, where I try the same type of code, I end up
with a null value for "funName"... but I cannot see where/how
to get the right value in there.
Any help would be appreciated.
Thanks
Derek
--
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. MailScanner thanks Transtec Computers for their
support.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]