Kelp Wireless Application


This sample demonstrates how to create a wireless application using XMLC and the Servlet 2.2 API. The sample show how to retreive information from a wireless device and how to create and send dynamic output to wireless device. Before running this sample, you should first install a WAP emulator such as the Nokia WAP Toolkit which is avalable at:

http://www.nokia.com/corporate/wap/sdk.html

Please review the Kelp documentation before running this project. See the readme.html file in the kelp4 directory for a link to the documentation files.



Running The Sample
  1. Compile the WML files using Enhydra XMLC. You can do this by selecting Tools | XML Compiler and then clicking on Compile.
     
  2. Deploy the application using the Kelp Deployer. From the menu select Tools | Kelp Deployer and then click on Deploy. This deploys configuration files for the application.
     
  3. Run your project to start the application server.
     
  4. Start your WAP device emulator and enter the location:
    http://localhost:8002/

Sample Pages

The Files
input/conf/multiserver.conf.in
   Configuration template for Enhydra 3.x.

input/conf/bootstrap.conf.in
   Configuration template for EAS 4.

input/java.policy
   Policy file for EAS 4.

input/boot.properties
   Startup propeties for EAS 4.

src/web-inf/web.xml
   Deployment descriptor that maps the servlets to URLs.

src/kelp/sample/wireless/resources/Select.wml
   XMLC template for Select servlet.

src/kelp/sample/wireless/resources/Welcome.wml
   XMLC template for Welcome servlet.

src/kelp/sample/wireless/presentation/SelectServlet.java
   Servlet that presents the selection page to a WAP device.

src/kelp/sample/wireless/presentation/WelecomeServlet.java
   Servlet that greets the user in a selected language

readme.html
   This file which is not an XMLC template.