You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Roberto <rm...@montefiore.ch> on 2004/12/07 09:33:42 UTC
Java Class
Hi all,
can I instantiate a java class directly from the Flowscript. For instance
function test(){
var check = new Package.java.lang //(or whatever)
}
Can I? & if yes, what the correct form?
Thanx
Ciao
ROb
Re: Java Class
Posted by Roberto <rm...@montefiore.ch>.
... I saw ur website....
So funny & weird, isn't? Glad that the "Roberto Marra Groups" works on the open technologies :-D
Ciao Bertrand & thanx
ROb
----- Original Message -----
From: "Bertrand Delacretaz" <bd...@apache.org>
To: <us...@cocoon.apache.org>
Sent: Tuesday, December 07, 2004 9:39 AM
Subject: Re: Java Class
Le 7 déc. 04, à 09:33, Roberto a écrit :
> can I instantiate a java class directly from the Flowscript. For
> instance
>
> function test(){
>
> ...var check = new Package.java.lang //(or whatever)
Yes - have a look at the tour block samples, there are several
examples, like
calculator = new
Packages.org.apache.cocoon.samples.tour.shapes.Square(b);
-Bertrand, who works with the "other" Roberto Marra (http://www.lab7.ch
;-)
Re: Java Class
Posted by Bertrand Delacretaz <bd...@apache.org>.
Le 7 déc. 04, à 09:33, Roberto a écrit :
> can I instantiate a java class directly from the Flowscript. For
> instance
>
> function test(){
>
> ...var check = new Package.java.lang //(or whatever)
Yes - have a look at the tour block samples, there are several
examples, like
calculator = new
Packages.org.apache.cocoon.samples.tour.shapes.Square(b);
-Bertrand, who works with the "other" Roberto Marra (http://www.lab7.ch
;-)
Re: Java Class
Posted by Roberto <rm...@montefiore.ch>.
Yep...thanx....Stephan... I should read much more the documentation ;-)
----- Original Message -----
From: "Stephan Coboos" <cr...@gmx.net>
To: <us...@cocoon.apache.org>
Sent: Tuesday, December 07, 2004 9:56 AM
Subject: Re: Java Class
> Yes, of course, you can:
>
> var foo = new Packages.your.package.path.Foo();
>
> or
>
> importClass(Packages.your.package.path.Foo);
> var foo = new Foo();
>
> See: http://cocoon.apache.org/2.1/userdocs/flow/java.html
>
> Regards
> Stephan
>
> Roberto wrote:
>
> > Hi all,
> > can I instantiate a java class directly from the Flowscript. For
instance
> >
> > function test(){
> >
> > var check = new Package.java.lang //(or whatever)
> >
> > }
> >
> > Can I? & if yes, what the correct form?
> >
> > Thanx
> > Ciao
> > ROb
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Java Class
Posted by Stephan Coboos <cr...@gmx.net>.
Yes, of course, you can:
var foo = new Packages.your.package.path.Foo();
or
importClass(Packages.your.package.path.Foo);
var foo = new Foo();
See: http://cocoon.apache.org/2.1/userdocs/flow/java.html
Regards
Stephan
Roberto wrote:
> Hi all,
> can I instantiate a java class directly from the Flowscript. For instance
>
> function test(){
>
> var check = new Package.java.lang //(or whatever)
>
> }
>
> Can I? & if yes, what the correct form?
>
> Thanx
> Ciao
> ROb
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org