Home > Contents > Index >
CALLJAVA
Calls a Java class.
Syntax
<CALLJAVA CLASS="JAVA_CLASS"> <ARGUMENTNAME="ARG_NAME" VALUE="ARG_VALUE"/> </CALLJAVA>Parameter
CLASS (required)- Name of Java class to call.
Description
The
CALLJAVAtag calls a Java class. The Java class must exist in the system's Java classpath and it must implement theCOM.FutureTense.XML.Template.Seedinterface. Use the ARGUMENT tag to pass arguments to the called Java class.Error Numbers
The possible values of
errnoinclude:
Value Description -900 Java class not found. -901 No access to class. -902 No instance. -903 Execute error. -904 Class cast error.Example
This example calls a compliant Java class,
timeexample. The Java class seeslogindateas an incoming parameter.<SETVAR NAME="errno" VALUE="0"/> <CALLJAVA CLASS="timeexample"> <ARGUMENT NAME="logindate" VALUE="SessionVariables.logintime"/> </CALLJAVA> <IF COND="IsError.Variables.errno=true"> <THEN> <!--Handle error--> </THEN> </IF>See Also
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.