Re: javascript -Java

Peter Sparkes <[email protected]> Sat, 27 Sep 2014 22:49:24 +0100
Newsgroups gmane.text.xml.cocoon.user
Message-ID <[email protected]>
Hi Jos

Thanks for the suggestion,  unfortunately it made  no difference

Peter

On 27/09/2014 07:23, Jos Snellings wrote:
> Hi Peter,
>
> Try in your javascript/flowscript:
> var imagescaled = Scalr.resize(imagein, size);
>
> without the "new" keyword. reason: You try to call a so-called "static" method.
>
> Hope that helps.
> Jos
>
> On Fri, Sep 26, 2014 at 10:30 PM, Peter Sparkes <[email protected] <mailto:[email protected]>> wrote:
>
>     Hi,
>
>     Cocoon 2.1.12
>
>     Ref http://cocoon.apache.org/2.1/userdocs/flow/java.html
>
>     Please how do I associate
>
>     importClass(Packages.org.imgscalr.Scalr);
>
>     with its jar file "imgscalr-lib-4.2.jar"
>
>     which I put in
>
>     WEB-INF/lib
>
>     Regards
>
>     Peter
>
>
>
>
> -- 
> Confucius said way too much ...
>