cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Madu <andrewm...@gmail.com>
Subject Re: Cast type in flowscript
Date Thu, 23 Feb 2006 09:55:07 GMT
  Jason,

>> var response = (DoDirectPaymentResponseType)
>> caller.call("DoDirectPayment", request);
>
> Javascript does not do compile-time type checking, so "casting" is
> completely unnecessary.  Just go ahead and access properties and call
> methods on your response variable; it will let you know at runtime if
> those methods or properties don't exist.
>
>   var response = caller.call("DoDirectPayment", request);

I tried your suggestion and am getting a class cast exception error:

'com.paypal.sdk.exceptions.TransactionException: ; nested exception  
is: java.lang.ClassCastException'

Any suggestions?

regards

Andrew
Mime
View raw message