Use Java from ECMA script

Issue

You want to use java in your ECMA (.esp) script.

Solution

Here is an example where a Java object is initialized, and a method of the object is called:

var myClass = new Packages.com.myapp.MyClass(); myClass.setTitle("My Title");

For additional information, see http://docs.day.com/en/home/communique_3/docucq355/programming/ecma_script_reference/creating/differences/using0.html

Note:

Although this documentation is written for Communiqué version 3.5.5/3.5.6, it's still applicable.

 Adobe

Dapatkan bantuan lebih cepat dan lebih mudah

Pengguna baru?

Adobe MAX 2024

Adobe MAX
Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX

Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX 2024

Adobe MAX
Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX

Konferensi Kreativitas

14–16 Oktober Miami Beach dan online