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 kelp2 directory for a link to the documentation files.



Running The Sample
  1. Compile the wml files using Enhydra's XMLC. You can do this by selecting Tools | XML Compiler and then clicking on Compile.
     
  2. If you are already using port 9000, you will first need to modify the following entry in the servlet.conf.in configuration template to use an available port.
    Connection.http.Port = 9000
    
  3. Deploy the application using the Enhydra Deployer. From the menu select Tools | Enhydra Deployer and then click on Deploy. This deploys configuration files for the application.
     
  4. Select Run | Run Project to start the Enhydra application server.
     
  5. Start your WAP device emulator and enter the location:
    http://localhost:9000/

    Note that the Nokia WAP Toolkit requires the trailing "/" in the URL.


Sample Pages

The Files
template/conf/bootstrap.conf.in
   Configuration template for configuring Enhydra 4.

template/conf/servlet/servlet.conf.in
   Configuration template for the Enhydra web container service.

template/java.policy
   Policy file to provide all rights to Enhydra services.

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.