cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jos Snellings <jos.snelli...@upperware.biz>
Subject Re: javascript -Java
Date Sat, 27 Sep 2014 06:23:35 GMT
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 <peter@didm.co.uk> 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 ...

Mime
View raw message