cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Legg" <david.l...@searchevent.co.uk>
Subject Re: Flowscript run-time error- passing parameters from script to Java - SOLVED
Date Wed, 19 Oct 2005 13:56:55 GMT
Jason Johnston wrote:
> So here the value for the key param1 is the String "value1"...
> ...and here you're expecting the value for the key param1 to be an *array* 
> of Strings.  That explains the ClassCastException.
>
> So either you must expect a single String as the value, or set it as a 
> String array in the flowscript.  Creating Java arrays in JS is a bit odd, 
> you have to use reflection: http://www.mozilla.org/rhino/faq.html

Excellent response!  Thanks a lot Jason.

It turned out I really did need a HashMap of string arrays (the same key can 
have several values in my app) so that reference to the mozilla site you 
gave was spot on.

Thanks again.

Regards,
David Legg



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message