Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Writing your First WAP Application.

Writing your First WAP Application. Tutorial Writing your First Application. N ow it's time to mould your Internet Data for the entire Unwired World! Our "Welcome to Unwired World" application will familiarize you with the WML code. As

Tutorial Details:

mentioned earlier WAP applications are written in WML (Wireless Markup Language). Now first of all we will explain the WML. WML is a markup is strongly similar to HTML and is based on Extensible Markup Language(XML). Formal Document Type Definition (DTD) for WML is provided by WAP Forum and is available at:
http://www.wapforum.org
Getting Started
To write a WML page you can use your favourite text editor like Notepad or Wordpad. After writing it save as '.wml' file. U.P. Browser (download and Install Phone.com - UP.SDK 4.x ) can be used to test the page. Our site also provide the facility for you to test your code.
Understanding Deck and Card
The whole WML-page is called a Deck and it consists of one or more cards. Each card contains the information that is displayed on the cellular devices in one screen. So in one Deck you can define one more screens. Cellular device displays first card when it receives a Deck. And in first card using elements and attributes we can define our navigational structure between different cards.
Let's create our first application. So, here is the code of our application.

"http://www.wapforum.org/DTD/wml_1.1.xml">



Welcome to Unwired World!




To test the above code copy and paste below and then press test button.
In any WML application first three line is must and it contains the XML and document type declaration.

"http://www.wapforum.org/DTD/wml_1.1.xml">
After XML and document type declaration WML deck start with and ends with tags. Each deck may contain one or more cards. First card of WML page is displayed by the cellular device and this card provides the links to the other cards of the deck.



Welcome to Unwired World!




WML card starts with and ends with tag. Attribute "id" of card element gives the identity to the card and using this id we can refer any card in the WML page. Next is

tag which we are using to display the paragraph. We can use

, , ,
, in our programming and these tags are identical to the HTML tags.
Tags
Functionality


Writing paragraph

Writing bold text

Writing italic text


Inserts a line break

Creates a link
By the end of this chapter you are very much familiar with the WML language. Now try the follwing WML script which uses the different formating tags. You can test your script by copying and pasting the code in above text area and pressing the test button.

"http://www.wapforum.org/DTD/wml_1.1.xml">



Welcome to Unwired World!
Line break

This is bold.

This is italic.

This is bold.

This is underline.

This is small.

This is strong.




Now write your own scripts and test it.
In the next section you will learn how to write more than one cards in a deck and define the navigational links between them.
Tutorial


 

Rate Tutorial:
http://www.roseindia.net/wap/firstapplication.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Writing your First WAP Application.

View Tutorial:
Writing your First WAP Application.

Related Tutorials:

WAP for Java developers - JavaWorld June 2000
WAP for Java developers - JavaWorld June 2000
 
Add XML to your J2EE applications - JavaWorld February 2001
Integrate an XML presentation layer in the J2EE layered architecture
 
Deliver cellular messages with SMS - JavaWorld March 2001
Deliver cellular messages with SMS - JavaWorld March 2001
 
Master J2ME for live data delivery
Master J2ME for live data delivery
 
FindBugs, Part 2: Writing custom detectors
FindBugs, Part 2: Writing custom detectors How to write custom detectors to find application-specific problems In the first article in this series, I showed you how to set up and execute FindBugs. Now we'll take a look at FindBugs' most powerful fea
 
Develop WAP Applications with Java Servlets and JavaServer PagesTM
WAP, the Wireless Application Protocol, was designed to take advantage of the several data-handling approaches already in use. WAP integrates the Handheld Device Markup Language (HDML) and the Handheld Device Transport Protocol (HDTP) developed by Unwired
 
JSP Escape taglib ver. 1.83
Also useful for WAP/WML developers - converts on the fly HTML to WML. Library has got two body tags Escape and WmlEscape.
 
Building Web Application With Ant and Deploying on Jboss 3.0
This lesson shows you how to build you web application and install on the Jboss 3.0 application server. After the completion of this lesson you will be able to compile, assemble and deploy your J2EE application on Jboss 3.0 application server
 
Tutorial for Developing your first JSPs tags
We have seen how servlets and JSPs can be used to build a web application. These technologies go some distance toward making web development easier, but do not yet facilitate the separation of Java from HTML in a reusable way. Custom tags make this possib
 
Free JSP, Free EJB and Free Servlets Hosting Servers
Free JSP, Free EJB and Free Servlets Hosting Servers Free JSP, Free EJB and Free Servlets Hosting Servers Web roseindia.net Other Free Hosting Services MyCGIserver - Free Hosting server provides the following support with the free account: JSP
 
Free JSP, Free EJB and Free Servlets Hosting Servers
Free JSP, Free EJB and Free Servlets Hosting Servers Web roseindia.net Free JSP, Free EJB and Free Servlets Hosting Servers MyCGIserver - Free Hosting server provides the following support with the free account: JSP 1.1, Servlets, Apache Cocoon,
 

Linux Hosting Plans Proxima Web-Hosting Our basic hosting packages include support for a wide variety of web technologies, backed by instant account management with our Personal Control panel. With our guaranteed
 
Introduction To Enterprise Java Bean(EJB). WebLogic 6.0 Tutorial.
Introduction To Enterprise Java Bean(EJB). WebLogic 6.0 Tutorial. Welcome to EJB Section (Learn to Develop World Class Applications with Enterprise Java Beans) (Online WebLogic 6.0 Tutorial) Introduction To Enterprise Java Bean(EJB) Enterprise
 
Welcome to the Jboss 3.0 Tutorial
Welcome to the Jboss 3.0 Tutorial Welcome to the Jboss 3.0 Tutorial 10 Minutes Guide to Ant Comprehensive description of Ant with example. Building Web Application With Ant and Deploying on Jboss 3.0 This lesson shows you how to build you web
 
Writing your First WAP Application.
Writing your First WAP Application. Tutorial Writing your First Application. N ow it's time to mould your Internet Data for the entire Unwired World! Our "Welcome to Unwired World" application will familiarize you with the WML code. As
 
Writing more than one cards in a WML deck.
Writing more than one cards in a WML deck. Tutorial First Card Writing more than one cards in a deck. In this lesson we will write application that uses two cards in a deck. First card is displayed only for some time and after that it directly
 
What is WAP? Detailed discussion of WAP API with examples.
What is WAP? Detailed discussion of WAP API with examples. Learn WAP in 60 minutes W ireless Application Protocol or WAP for short, allows the developers to develop next generation web application for cellular devices. Through WAP enabled mobile
 
WAP Toolkits Motorola - Mobile ADK 1.1 Nokia - WAP Toolkit
WAP Toolkits Motorola - Mobile ADK 1.1 Nokia - WAP Toolkit Tutorial WAP Toolkits T o develop any WAP application you have to download software essential for development. Although you can write and test your codes through our site for learning
 
What is WAP? Wireless Application Protocol
What is WAP? Wireless Application Protocol Tutorial What is WAP? W ireless Application Protocol or WAP for short is simply a protocol - a standerized way for delivering Internet data over wireless networks. Thus WAP links Wireless Network with
 
Creating EJB clients using the Eclipse Rich Client Platform
This article shows how to build a sample EJB client using the Eclipse Rich Client Platform (RCP), which has become increasingly popularity due to its extensible nature.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.