Web Development |
The Panther Web Gallery contains sample applications that demonstrate a variety of HTML and Panther features. You can view the applications in the Panther Web Gallery or in the editor.
To visit the Panther Web Gallery, use the following URL:
http://server-name/cgi-directory/jwsamp[.exe]/main
You can view these applications in the editor to see how they were created. Locate the sample application files in the appropriate subdirectory under your Panther samples subdirectory (in the Web application server home directory). For example, the Java applet application is located in ... web/samples/java
, where ... web
is the web application server home directory. Full directory information for each application is provided in the descriptions that follow.
General Applications |
The following applications incorporate a variety of HTML and Panther features that you might find in a typical application:
For example, suppose your software company has deployed this package to track its software shipments. To locate a package: first, select the customer to whom the package is being shipped; a database query returns the shipping information for the selected customer. Then click on the waybill number for the package that you're interested in, and the application calls the carrier's tracking program and passes the waybill number as a parameter.
Directory: ... web/samples/shipping
Directory: ... web/samples/search
Directory: ... web/samples/dblinks
Directory: ... web/samples/3tier
Feature-Specific Examples |
The following examples show how to use specific HTML or Panther features:
This example demonstrates both action and selection list boxes. Both types of list boxes have been put into grids. The master grid uses the properties of an action list box. When you select an item (a customer's name) in the master grid, the detail grid is populated with the appropriate data (the film videos that the customer has rented). The detail grid has the properties of a selection list box. In this grid, you can select all of the film videos that are to be returned. (Press the save button to update the database after your selection.)
Directory: ... web/samples/listbox
Directory: ... web/samples/activex
Directory: ... web/samples/jamjavas
Directory: ... web/samples/busgraph
GET
or a POST
has occurred, and other important information.
You can view the values of this application's CGI (Common Gateway Interface) variables. (Press the Submit button to view the CGI variables after a POST
has occurred.)
Directory: ... web/samples/cgi
Directory: ... web/samples/cookie
In this example, you can view asynchronously changing clocks that compute the time in New York, London, and Tokyo.
Directory: ... web/samples/javascr
Directory: ... web/samples/sendrec
The grid in this sample expands according to the number of rows returned from the database. You can select all video titles, titles beginning with a certain letter, or the titles in a specific classification. If you want detailed data about the video, click on the title_id
, and the information is displayed at the bottom of the screen.
Directory: ... web/samples/expgrid
Directory: ... web/samples/frames
web/samples/graphics/usa.map
to your DOCROOT
directory.
Directory: ... web/samples/graphics
K_WEBPOST
)
GET
and POST
. GET
is used when the browser is requesting data or submitting a limited amount of data.
POST
is used when the browser is submitting large amounts of data. The Panther flag K_WEBPOST
enables the Application Server program to determine if the incoming request is a POST
.
In the sample, the flag K_WEBPOST
is queried to prevent a second connection to the database after the initial connection has been established.
You can use this application to insert, update, or delete data from a database. Directory: ... web/samples/kflag
Directory: ... web/samples/hyperlnk
Directory: ... web/samples/java
Directory: ... web/samples/globals
Directory: ... web/samples/mdframes
Directory: ... web/samples/webwrite
Directory: ... web/samples/scroll
If your PC has a sound card installed, you can listen to the sound files by clicking on the appropriate graphics.
Directory: ... web/samples/sound
Directory: ... web/samples/template
in_web
is used to determine whether the application is running in a Web or non-Web environment, and the detail information is populated accordingly.
You can select a film from a grid and view detail information about the film.
Directory: ... web/samples/webflag