WebFOCUS API Sample Web Application Structure

The WebFOCUS API sample application is installed in a J2EE Web application open directory structure located in drive:\ibi\WebFOCUS77\samples\webapps\wfapi.

The following table describes the directories of the sample Web application:

Directory

Description

wfapi

Contains all of the public files that can be directly accessed by the browser (JSPs).

wfapi/images

Contains the background image used by the public pages.

wfapi/META-INF

Contains the manifest.mf file. This file is private and cannot be directly accessed by the client.

wfapi/WEB-INF

Contains private resources used by the application. The deployment descriptor of the application (web.xml) is located in this directory.

WEB-INF/classes

Contains a properties file used to set up logging features within the application. This file cannot be accessed directly by the client.

WEB-INF/lib

Contains the required WebFOCUS API WFAPI.jar file. Also contains the source code of the sample application in wfapiapp.jar. Both the compiled and open source is available. The log4j-1.2.9.jar file has been included, since the sample Web application uses its logging features to log the application activity.

The sample Web application contains the following packages:

Package

Description

com.ibi.ajs.util

Contains a utility class used to print trace information to the log.

com.ibi.ajs.wfapi

Contains classes used to setup the login context and request variables to be processed by the WebFOCUS API.

com.ibi.ajs.wfapi.samples

Contains classes with the necessary API calls to execute the WebFOCUS request.


WebFOCUS