cocoon-users mailing list archives

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

>> var response = (DoDirectPaymentResponseType)
>>"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 ="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?


View raw message