ObjectModelType

Description

Identifies the application server you are running.

Applies to

PSServerClass object

Syntax

psServer.ObjectModelType( )

Returns

String

Usage

At runtime, ObjectModelType has the following behavior:

Application server

Runtime behavior

ASP

Returns the string “ASP”

JSP

Returns the string “JSPObject”

Examples

Example 1

The following example tests to see which application server is running and performs platform-specific logic that varies depending on the outcome of the test:

servertype = psServer.ObjectModelType( );
if (servertype == "ASP")
		{
		// Perform ASP-specific logic
		}
if (servertype == "JSPObject")
		{
		// Perform JSP-specific logic
		}