Home | Ajax | BioInformatics | Dojo | EAI | EJB | Hibernate | J2ME | Java | Java Glossary | Java Servlets | JavaScript | Jboss | JDBC | JDO | Jmeter | JSF | JSP | JUnit | Maven | MySQL | Spring Framework | SQL | Struts | Technology | WAP | Web Services | XML


 
  
 
Programming Tutorials: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML
 

 
Facing Programming Problem?
Ask Questions?, Browse Latest Questions, Question-Answer Guidelines
WAP
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments

Tutorial

Welcome to Unwired World! Output

  

Writing your First Application.

Now 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 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.

<?xml version="1.0"?>

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"

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

<wml>

<card id="Card1" title="Learning WML ">

<p>

Welcome to Unwired World!

</p>

</card>

</wml>

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.

<?xml version="1.0"?>

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"

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

     

After XML and document type declaration WML deck start with <wml> and ends with </wml> 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. 

<wml>

<card id="Card1" title="Learning WML ">

<p>

Welcome to Unwired World!

</p>

</card>

</wml>

WML card starts with <card>and ends with </card> 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 <p> tag which we are using to display the paragraph. We can use <p>, <b>, <i>, <br>, <a> in our programming and these tags are identical to the HTML tags.   

Tags Functionality
<p> Writing paragraph
<b> Writing bold text
<i> Writing italic text
<br> Inserts a line break
<a> 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.

<?xml version="1.0"?>

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"

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

<wml>

<card id="Card1" title="Learning WML ">

<p>

Welcome to Unwired World! <br/> Line break<br/>

<b>This is bold.</b><br/>
<i>This is italic.</i><br/>
<b>This is bold.</b><br/>
<u>This is underline.</u><br/>
<small>This is small.</small><br/>
<strong>This is strong.</strong><br/>
</p>  

</card>

</wml>

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

    

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Latest Searches:
ASP Form Processing Se
howtocreatewarfile
J2ME
Applet web Programing
jpanel
system
createfilewithphp
tattoo efectes
eclipse tutorial
insert fields blob
array list
example of JFileChoos
JSP:File Field
draw Polyline
calculators
f:view tag
ms excel
Paint Shop Pro Photo E
array in javascript
Show message and confi
XML document pro
xml marshling
jQuery To Slide Effect
JavaEJBeclipsexDocletE
Java Debugger used in
jsf validator
configu.struts.xml
awt example
html:checkbox is check
how to use unique cons
Photoshop Digital Art
netbeanscode
marshling
table.close()
Flash Interactivity Cr
randomize
B Tree
calculate days between
sprite applet
bank
types of webserver
structs
creating a table in HT
length
?ร?ย�?ร?ย�
code for Write a small
present
Area and circumference
struts menu
websecurity
get url
Android
coding in time date o
strust example
JTree popup menu
passing values from js
Photoshop Textures and
modity
how to write in pdf us
jre 1.5
Hibernate Min() Functi
swithstatementexamplei
dojo table editable
J2ME menu
jasper
ignore
Measure
tagforstutstable
Reading Dom Tree Eleme
javastring
decimals
java method
from string to int
dynamic metatags
ั?à¹???ะà¸?ะà¸?à
delete data in mysql d
J2ME Gauge
delete statement form
fireTableCellUpdated
Photoshop Write messag
Java String toLowerCase Example
Java String toCharArray Example
Java String substring Example
Java String indexOf Example
Java String startsWith Example
Java String hashCode Example
Java String matches Example
Java String length Example
Java String lastIndexOf Example
Java String isEmpty Example
Java String equalsIgnoreCase Example
Java String equals Example
Java String endsWith Example
Java String copyValueOf Example
Java String contentEquals Example
  EAI Articles
  Java Certification
Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Java Training Delhi | Java Training at Noida |

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

Copyright © 2008. All rights reserved.