+

Search Tips   |   Advanced Search

Command reference for the Portal Scripting Interface

The HCL WebSphere Portal Scripting Interface component provides a scripting interface for the administration functions. With the Portal Scripting Interface, we can access the portal with any portal user ID and work within the access rights of that user ID.

Jython or Jacl are the two scripting languages that we can use for the scripting syntax and that are supported by the wsadmin tool of the WebSphere Application Server.


Jython

Jython is a general-purpose high-level programming language. It uses code indentation as block delimiters.

Example:

A variable can contain an object. In a statement, an object method starts with the object followed by a dot (.), the method name, and arguments that are passed to the method in parentheses (). Example:


Jacl

Jacl is an interpreted language without strong typing. It is a procedural language with some object-oriented concepts that are used by the scripting component.

Example:

The value of a Jacl variable is accessed by placing a $ in front of the variable name. A variable can contain an object. An object method is started using the object as the first part of a statement, followed by the method name, and any arguments that are passed to the method. Since there is no strong typing, a method can be overloaded only by varying the number of arguments. Example:



References: