|
| 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:
- Connectivity between WebLogic Server and a mobile terminal through a
Wireless Application Protocol (WAP) gateway
- Generating Wireless Markup Language (WML) documents from within a JSP
- Configuring WAP MIME types within WebLogic Server
- Using Nokia WAP Server as a gateway between WebLogic Server and mobile clients
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:
- Configure the Server
- Run the Example
- The following MIME types are already registered with the
Examples Web Application and
are included here for information only.
File Extension | MIME Type |
wml | text/vnd.wap.wml |
wmlc | application/vnd.wap.wmlc |
wmls | text/vnd.wap.wmlscript |
wmlsc | application/vnd.wap.wmlscriptc |
wbmp | image/vnd.wap.wbmp |
- The following JSP parameters are already registered with the
Examples Web Application and
are included here for information only.
Parameter | Value |
compile command | JAVA_HOME/bin/javac |
pageCheckSeconds | 1 |
verbose | true |
- 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.
- Start the WebLogic Server with
the examples configuration.
- 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.
- Start and log in to the Nokia WAP Server Manager (username="admin",
password=""). Ensure that UDP bearer adapter has been started.
- Start the Nokia WAP toolkit.
- 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.
- From the toolkit's General menu, select Start Traffic
- From the toolkit's Browser menu, select Load location...
- 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:
Copyright © 2000 BEA Systems, Inc.
All rights reserved.