WebLogic Server 6.0.0 Code Examples, BEA Systems, Inc.

Package examples.wap.date

This example illustrates connectivity between WebLogic Server and a mobile terminal through a Wireless Application Protocol (WAP) gateway.

See:
          Description

Date Example Summary
Date This file is accessed by the mobile client (the Nokia WAP simulation client) and displays the current date and time in the client display.
 

Package wap.date Description

This example illustrates:

In this example, Date.jsp is accessed by the mobile client (the Nokia WAP simulation client) and displays the current date and time in the client display. Date.jsp is based upon the ShowDate.jsp page of the JSP examples. This page has been modified to generate a WML document instead of an HTML document. The Nokia WAP Server is used as a gateway and converts WML requests received from the client to HTTP Servlet requests that are forwarded to Date.jsp running on WebLogic Server. Date.jsp responds by sending a generated WML document.

You will need to install the following software to run this example:

Perform the following steps in order to configure and run the examples:

  1. Configure the Server
  2. Run the Example

Configure the Server

  1. The following MIME types are already registered with the Examples Web Application and are included here for information only.

    File ExtensionMIME Type
    wmltext/vnd.wap.wml
    wmlcapplication/vnd.wap.wmlc
    wmlstext/vnd.wap.wmlscript
    wmlscapplication/vnd.wap.wmlscriptc
    wbmpimage/vnd.wap.wbmp

  2. The following JSP parameters are already registered with the Examples Web Application and are included here for information only.

    ParameterValue
    compile commandJAVA_HOME/bin/javac
    pageCheckSeconds1
    verbosetrue

  3. Copy Date.jsp from the samples/examples/wap/date directory of your WebLogic distribution to the config/examples/applications/examplesWebApp directory. This directory is the location for publically-available files associated with the Examples Web Application.

Run the Example

Refer to the Nokia documentation for details on starting and administering the WAP Server and for using the WAP tookit.
  1. Start the WebLogic Server with the examples configuration.
  2. Start the Nokia WAP Server. You must have the /bin directory of JRE 1.2.2 in your PATH to start the Nokia WAP Server.
  3. Start and log in to the Nokia WAP Server Manager (username="admin", password=""). Ensure that UDP bearer adapter has been started.
  4. Start the Nokia WAP toolkit.
  5. Verify that the Nokia WAP toolkit is configured to pass all communication through the WAP gateway. In the toolkit menu, select Device Settings. Select the Use WAP Gateway radio button. Under Gateway Settings, select Use Connectionless Mode. Hit OK.
  6. From the toolkit's General menu, select Start Traffic
  7. From the toolkit's Browser menu, select Load location...
  8. In the Open Location dialog box, enter:
    http://hostname:7001/examplesWebApp/Date.jsp
    where:
    hostname
    Host name of the WebLogic Server.
    port
    Port where the WebLogic Server is listening for connections (weblogic.system.ListenPort).

There's More...

Read more about:


Documentation is available at
http://e-docs.bea.com/wls/docs60/

Copyright © 2000 BEA Systems, Inc. All rights reserved.