Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 14279 invoked from network); 15 Feb 2006 06:38:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Feb 2006 06:38:08 -0000 Received: (qmail 99698 invoked by uid 500); 15 Feb 2006 06:38:05 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 99521 invoked by uid 500); 15 Feb 2006 06:38:03 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 99410 invoked by uid 99); 15 Feb 2006 06:38:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2006 22:38:02 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 14 Feb 2006 22:37:50 -0800 Received: (qmail 13074 invoked by uid 65534); 15 Feb 2006 06:37:30 -0000 Message-ID: <20060215063730.13073.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r377949 [10/21] - in /cocoon/site/site/2.1: ./ developing/ developing/portal/ developing/portal/coplets/ developing/webapps/ developing/webapps/authentication/ faq/ howto/ installing/ plan/documentation/ plan/otherplanning/ plan/overview/ s... Date: Wed, 15 Feb 2006 06:36:23 -0000 To: cvs@cocoon.apache.org From: crossley@apache.org X-Mailer: svnmailer-1.0.6 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Modified: cocoon/site/site/2.1/userdocs/file-generator.html URL: http://svn.apache.org/viewcvs/cocoon/site/site/2.1/userdocs/file-generator.html?rev=377949&r1=377948&r2=377949&view=diff ============================================================================== --- cocoon/site/site/2.1/userdocs/file-generator.html (original) +++ cocoon/site/site/2.1/userdocs/file-generator.html Tue Feb 14 22:36:05 2006 @@ -1203,9 +1203,7 @@ -
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+

Advanced Control Flow - Java

- +

Calling Java

You can easily call Java code from your Flowscripts, for example:

    var map = new java.util.HashMap();
     map.put("foo", "bar");
     
- +

Imports

Classes in packages under java are accessible directly in your scripts.

@@ -1289,14 +1287,14 @@

Example:

    importPackage(java.util);   
     var set = new TreeSet();
- +

Bean Properties

If your Java classes have getters and setters you can access them as properties in JavaScript:

    var d = new java.util.Date();
     d.year = 2003;    // same effect as d.setYear(2003);
 
- +

Dynamic Compilation

Cocoon includes an embedded Java compiler that can dynamically compile Java source files and load and execute the resulting classes at runtime. During @@ -1313,7 +1311,7 @@ obj.someMethod(); // call a method - +

Configuration

You control this behavior by specifying configuration properties in the cocoon.xconf file located in the WEB-INF/ directory of your Modified: cocoon/site/site/2.1/userdocs/flow/jpath.html URL: http://svn.apache.org/viewcvs/cocoon/site/site/2.1/userdocs/flow/jpath.html?rev=377949&r1=377948&r2=377949&view=diff ============================================================================== --- cocoon/site/site/2.1/userdocs/flow/jpath.html (original) +++ cocoon/site/site/2.1/userdocs/flow/jpath.html Tue Feb 14 22:36:05 2006 @@ -1203,9 +1203,7 @@ -

-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+
-
-ApacheCon US 2005 - logo -
+