Previous Topic: Executing the Sample ApplicationsNext Topic: Stand-alone Application


JSP Sample

The generation and installation process creates everything you need to invoke the JSP Proxy sample by a J2EE Application Server. The \samples\JSP directory contains a series of .JSP files for each method in the proxy. For convenience, there are additional files generated (operations.htm, default.htm, and blank.htm).

After the build process, all of these files are packaged into an EAR file for the component. The EAR file also contains all the runtimes necessary to execute the sample JSP application.

To execute the JSP, you must deploy the EAR file to a J2EE Application Server. For more information on how to deploy ear files, see the application server documentation.

After deploying, you can execute the JSPs by entering the following URL in a browser:

http://localhost/<component-name>

The component-name portion is considered the context for the JSP sample application. It is case-sensitive, so be careful what you enter there.

The EAR file is configured to automatically cause the default.htm file to be loaded. Alternatively, the following URLs are also possible:

http://localhost/<component-name>/default.htm
http://localhost/<component-name>/operations.htm
http://localhost/<component-name>/<method-name>.jsp

Once the JSP page is displayed, fill in all the import fields appropriately and click Execute button. At that point, the proxy is executed and any errors or the export view is displayed.