SlideShare a Scribd company logo
1 of 33
Mobile Website Development
Survey of WML
Facilitated by:
Michael Wakahe
Tawi Commercial
Services Ltd
Jul 2011
Table of Contents
 Introduction
 Hello World
 Introducing JSP
 Exercises
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Introduction
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Introduction
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
The
WAP
Stack
Introduction
 WTP (Wireless Transaction Protocol) & WDP
(Wireless Datagram Protocol) provide low-level glue
between the upper levels and the really low-level
communications.
 WTLS (Wireless Transaction Layer Security) provides
security services (encryption and authentication).
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Introduction
 These protocols aren't relevant to normal
application programmers
 The second highest level in the stack is the high-
level communications protocol, called WSP
(Wireless Session Protocol).
 Provides a complete replacement for HTTP
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Introduction
 The highest stack level is WAE (Wireless
Application Environment)
 This is the part that the user actually sees &
interacts
 The WAE aims to provide a World Wide Web-like
model for writing applications
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Introduction
 The WAE incorporates several key features of the
Web that we are familiar with, e.g. URLs & MIME
content types (such as text/html and image/gif)
 Additionally it provides similar replacements for
other features: HTML is replaced with WML
(Wireless Markup Language) & JavaScript is replaced
with WMLScript
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Introduction
 Almost all WAP applications can be written
without using anything outside of these two
languages and WBMP (Wireless Bitmap: the WAP
image format)
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Introduction
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
The WAP Chain of Processing
Hello World
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Hello World
 We will use Eclipse to compose our WML and deploy
in the Tomcat ROOT folder
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Hello World
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC
"-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="First WML Example">
<p>Hello, World!</p>
</card>
</wml>
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Hello World
 Note that all tag names are in lowercase
 In WML, tag names are case-sensitive
 A file of WML represents a deck of cards
 This is the reason for the <card> tag
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Hello World
 Each individual card does behaves very much like an
HTML page
 So you can think of a WML deck as being similar to a
number of HTML pages all grouped together
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Hello World
 Cards in a deck are all downloaded at the same time
 So the user has to wait only once & the others can be
accessed almost instantly
 Cramming too many cards into a single deck is bad
practice
 Ideally maximum of 5 to 6 cards per deck
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
WML
Structure
Explained
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
WML Structure Explained
Valid child tags of <wml> are:
 <head>: Defines document metadata and access
control using the <meta> and <access> tags. Zero or
one <head> tags are allowed in a document.
 <card>: Defines a card to display in the browser. One
or more <head> tags are allowed in a document.
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
WML Structure Explained
 <template>: Defines global event handlers and
commands for the deck. Zero or one <template> tags
are allowed in a document.
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
WML Structure Explained
Valid child tags of <card> are:
 <p>: Contains text, images, and links. Most user-
accessible and visible content in a WML card is child
content of this tag. Zero or more <p> tags are
allowed in a card.
 <pre>: Contains preformatted text. Zero or more
<pre> tags are allowed in a card.
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
WML Structure Explained
 <do>: Contains commands and actions. Zero or more
<do> tags are allowed in a card.
 <timer>: Activates time-based events. Zero or one
<timer> tags are allowed in a card.
 <onevent>: Specifies tasks based on different card-
level events. Zero or more <onevent> tags are
allowed in a card.
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
WML Structure Explained
Comments:
<!-- A simple comment. -->
<!--This is
a comment that
spans several lines.-->
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
WML Structure Explained
 Other topics in WML include: Special Characters,
Header & Metadata, Text Formatting, Links, Images,
Tables, Timers, Variables, User Input, WMLScript
 Browse to http://learnthemobileweb.com/books
for links to WML references and helpful
documentation
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Introducing
JSP
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Introducing JSP
 WML can be mixed with JSP and Servlets
 Save the following example as a .jsp not as a .wml
 Deploy to servlet container (Tomcat)
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Introducing JSP
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<%
response.setContentType("text/vnd.wap.wml;charset=UTF-8");
int num1 = 9;
int num2 = 12;
%>
<wml>
<card title="First WML Example">
<p>My name is <% out.println("Michael"); %></p>
<p>The sum of num1 and num2 is <%= (num1+num2) %></p>
</card>
</wml>
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Exercises
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Exercises
Spot the errors in the following sample:
<wml>
<card ID=start title='Example of Invalid WML'>
<P>This markup is invalid.
</card>
</wml>
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Exercises
The WML code sample above has the following syntax
errors:
 XML declaration is missing.
 DOCTYPE declaration is missing.
 ID attribute of <card> tag is uppercase. (Well-formed
WML requires lowercase tags.)
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Exercises
 Value of the id attribute of the <card> is not
delimited.
 Value of the title attribute of the <card> tag is
delimited with single quotes.
 <p> tag is uppercase. (Well-formed WML requires
lowercase tags.)
 <p> tag has an open tag but not matching close tag.
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Exercises
Correct version is as follows:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML
1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<card id="start" title="Example of Valid WML">
<p>This markup is valid.</p>
</card>
</wml>
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
Exercises
 Write a WML file that shows the first 7 digits of the
Fibonacci Series. Can use JSP and/or servlets.
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.
The End
Michael Wakahe
michael@tawi.mobi
+254 (0) 20 239 3052
www.tawi.mobi
Copyright © Tawi Commercial Services Ltd. 2015. All Rights
Reserved.

More Related Content

Similar to Survey of WML

WML-Tutorial
WML-TutorialWML-Tutorial
WML-TutorialOPENLANE
 
Wireless languages and content generation technologies
Wireless languages and content generation technologiesWireless languages and content generation technologies
Wireless languages and content generation technologiesSuveeksha
 
Mobile Business
Mobile BusinessMobile Business
Mobile Businessdoba2007
 
Brief on Device Awareness and Content Adaptation
Brief on Device Awareness and Content AdaptationBrief on Device Awareness and Content Adaptation
Brief on Device Awareness and Content Adaptationtawi123
 
Mobile Website Development
Mobile Website DevelopmentMobile Website Development
Mobile Website Developmenttawi123
 
See Inside the Middleware Black Box
See Inside the Middleware Black Box See Inside the Middleware Black Box
See Inside the Middleware Black Box CA Technologies
 
Introduction to Mobile Internet
Introduction to Mobile InternetIntroduction to Mobile Internet
Introduction to Mobile Internettawi123
 
ITFT_Wireless markup language
ITFT_Wireless markup languageITFT_Wireless markup language
ITFT_Wireless markup languageShilpa Sharma
 
Wireless Application Protocol
Wireless Application ProtocolWireless Application Protocol
Wireless Application ProtocolNyi Tun
 
Wap architecture and wml script
Wap architecture and wml scriptWap architecture and wml script
Wap architecture and wml scriptishmecse13
 
Service Oriented Architecture
Service Oriented ArchitectureService Oriented Architecture
Service Oriented ArchitectureLuqman Shareef
 
transcoding.ppt
transcoding.ppttranscoding.ppt
transcoding.pptVideoguy
 
Maneuver Your Enterprise Data With WSO2 Data Service Server
Maneuver Your Enterprise Data With WSO2 Data Service ServerManeuver Your Enterprise Data With WSO2 Data Service Server
Maneuver Your Enterprise Data With WSO2 Data Service ServerPrabath Abeysekara
 
Moving applications to the cloud
Moving applications to the cloudMoving applications to the cloud
Moving applications to the cloudSergejus Barinovas
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examplesAlfredo Torre
 

Similar to Survey of WML (20)

WML-Tutorial
WML-TutorialWML-Tutorial
WML-Tutorial
 
Wireless languages and content generation technologies
Wireless languages and content generation technologiesWireless languages and content generation technologies
Wireless languages and content generation technologies
 
Wml
WmlWml
Wml
 
Wap wml
Wap wmlWap wml
Wap wml
 
Mobile Business
Mobile BusinessMobile Business
Mobile Business
 
Brief on Device Awareness and Content Adaptation
Brief on Device Awareness and Content AdaptationBrief on Device Awareness and Content Adaptation
Brief on Device Awareness and Content Adaptation
 
Mobile Website Development
Mobile Website DevelopmentMobile Website Development
Mobile Website Development
 
See Inside the Middleware Black Box
See Inside the Middleware Black Box See Inside the Middleware Black Box
See Inside the Middleware Black Box
 
Introduction to Mobile Internet
Introduction to Mobile InternetIntroduction to Mobile Internet
Introduction to Mobile Internet
 
ITFT_Wireless markup language
ITFT_Wireless markup languageITFT_Wireless markup language
ITFT_Wireless markup language
 
Wireless Application Protocol
Wireless Application ProtocolWireless Application Protocol
Wireless Application Protocol
 
Wap architecture and wml script
Wap architecture and wml scriptWap architecture and wml script
Wap architecture and wml script
 
Service Oriented Architecture
Service Oriented ArchitectureService Oriented Architecture
Service Oriented Architecture
 
HTTP/2 Comes to Java
HTTP/2 Comes to JavaHTTP/2 Comes to Java
HTTP/2 Comes to Java
 
Mwml
MwmlMwml
Mwml
 
transcoding.ppt
transcoding.ppttranscoding.ppt
transcoding.ppt
 
Maneuver Your Enterprise Data With WSO2 Data Service Server
Maneuver Your Enterprise Data With WSO2 Data Service ServerManeuver Your Enterprise Data With WSO2 Data Service Server
Maneuver Your Enterprise Data With WSO2 Data Service Server
 
XML Introduction
XML IntroductionXML Introduction
XML Introduction
 
Moving applications to the cloud
Moving applications to the cloudMoving applications to the cloud
Moving applications to the cloud
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examples
 

More from tawi123

Overview of Java
Overview of JavaOverview of Java
Overview of Javatawi123
 
Mobile Internet Standards
Mobile Internet StandardsMobile Internet Standards
Mobile Internet Standardstawi123
 
Mobile Internet Best Practices
Mobile Internet Best PracticesMobile Internet Best Practices
Mobile Internet Best Practicestawi123
 
Introduction to SMS, MMS, Modems & Gateways
Introduction to SMS, MMS, Modems & GatewaysIntroduction to SMS, MMS, Modems & Gateways
Introduction to SMS, MMS, Modems & Gatewaystawi123
 
Linux, PHP, SMS - USSD Examination
Linux, PHP,  SMS - USSD ExaminationLinux, PHP,  SMS - USSD Examination
Linux, PHP, SMS - USSD Examinationtawi123
 
Workstation Exercises
Workstation ExercisesWorkstation Exercises
Workstation Exercisestawi123
 
Work Injury Benefits Act 2007
Work Injury Benefits Act 2007Work Injury Benefits Act 2007
Work Injury Benefits Act 2007tawi123
 
The Kenya Information and Communications Consumer Protection Regulations 2010
The Kenya Information and Communications Consumer Protection Regulations 2010The Kenya Information and Communications Consumer Protection Regulations 2010
The Kenya Information and Communications Consumer Protection Regulations 2010tawi123
 
Tax KRA Compliance Certificate
Tax KRA Compliance CertificateTax KRA Compliance Certificate
Tax KRA Compliance Certificatetawi123
 
Tawi Staff Handbook 2015
Tawi Staff Handbook 2015Tawi Staff Handbook 2015
Tawi Staff Handbook 2015tawi123
 
Tawi SMS-USSD Customer Agreement
Tawi SMS-USSD Customer AgreementTawi SMS-USSD Customer Agreement
Tawi SMS-USSD Customer Agreementtawi123
 
Tawi SMS Application Form - SMS Short Code
Tawi SMS Application Form - SMS Short CodeTawi SMS Application Form - SMS Short Code
Tawi SMS Application Form - SMS Short Codetawi123
 
Tawi Product Overview
Tawi Product OverviewTawi Product Overview
Tawi Product Overviewtawi123
 
Tawi SMS Application Form - Sender Id
Tawi SMS Application Form - Sender IdTawi SMS Application Form - Sender Id
Tawi SMS Application Form - Sender Idtawi123
 
Tawi Nairobi City County License 2015
Tawi Nairobi City County License 2015Tawi Nairobi City County License 2015
Tawi Nairobi City County License 2015tawi123
 
Tawi NSSF Registration
Tawi NSSF RegistrationTawi NSSF Registration
Tawi NSSF Registrationtawi123
 
Tawi tax KRA Certificate
Tawi tax KRA CertificateTawi tax KRA Certificate
Tawi tax KRA Certificatetawi123
 
Tawi FKE Certificate of Membership 2014
Tawi FKE Certificate of Membership 2014Tawi FKE Certificate of Membership 2014
Tawi FKE Certificate of Membership 2014tawi123
 
Tawi Fire Clearance Certificate 2015
Tawi Fire Clearance Certificate 2015Tawi Fire Clearance Certificate 2015
Tawi Fire Clearance Certificate 2015tawi123
 
Tawi Customer Onboarding Process
Tawi Customer Onboarding ProcessTawi Customer Onboarding Process
Tawi Customer Onboarding Processtawi123
 

More from tawi123 (20)

Overview of Java
Overview of JavaOverview of Java
Overview of Java
 
Mobile Internet Standards
Mobile Internet StandardsMobile Internet Standards
Mobile Internet Standards
 
Mobile Internet Best Practices
Mobile Internet Best PracticesMobile Internet Best Practices
Mobile Internet Best Practices
 
Introduction to SMS, MMS, Modems & Gateways
Introduction to SMS, MMS, Modems & GatewaysIntroduction to SMS, MMS, Modems & Gateways
Introduction to SMS, MMS, Modems & Gateways
 
Linux, PHP, SMS - USSD Examination
Linux, PHP,  SMS - USSD ExaminationLinux, PHP,  SMS - USSD Examination
Linux, PHP, SMS - USSD Examination
 
Workstation Exercises
Workstation ExercisesWorkstation Exercises
Workstation Exercises
 
Work Injury Benefits Act 2007
Work Injury Benefits Act 2007Work Injury Benefits Act 2007
Work Injury Benefits Act 2007
 
The Kenya Information and Communications Consumer Protection Regulations 2010
The Kenya Information and Communications Consumer Protection Regulations 2010The Kenya Information and Communications Consumer Protection Regulations 2010
The Kenya Information and Communications Consumer Protection Regulations 2010
 
Tax KRA Compliance Certificate
Tax KRA Compliance CertificateTax KRA Compliance Certificate
Tax KRA Compliance Certificate
 
Tawi Staff Handbook 2015
Tawi Staff Handbook 2015Tawi Staff Handbook 2015
Tawi Staff Handbook 2015
 
Tawi SMS-USSD Customer Agreement
Tawi SMS-USSD Customer AgreementTawi SMS-USSD Customer Agreement
Tawi SMS-USSD Customer Agreement
 
Tawi SMS Application Form - SMS Short Code
Tawi SMS Application Form - SMS Short CodeTawi SMS Application Form - SMS Short Code
Tawi SMS Application Form - SMS Short Code
 
Tawi Product Overview
Tawi Product OverviewTawi Product Overview
Tawi Product Overview
 
Tawi SMS Application Form - Sender Id
Tawi SMS Application Form - Sender IdTawi SMS Application Form - Sender Id
Tawi SMS Application Form - Sender Id
 
Tawi Nairobi City County License 2015
Tawi Nairobi City County License 2015Tawi Nairobi City County License 2015
Tawi Nairobi City County License 2015
 
Tawi NSSF Registration
Tawi NSSF RegistrationTawi NSSF Registration
Tawi NSSF Registration
 
Tawi tax KRA Certificate
Tawi tax KRA CertificateTawi tax KRA Certificate
Tawi tax KRA Certificate
 
Tawi FKE Certificate of Membership 2014
Tawi FKE Certificate of Membership 2014Tawi FKE Certificate of Membership 2014
Tawi FKE Certificate of Membership 2014
 
Tawi Fire Clearance Certificate 2015
Tawi Fire Clearance Certificate 2015Tawi Fire Clearance Certificate 2015
Tawi Fire Clearance Certificate 2015
 
Tawi Customer Onboarding Process
Tawi Customer Onboarding ProcessTawi Customer Onboarding Process
Tawi Customer Onboarding Process
 

Recently uploaded

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 

Recently uploaded (20)

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 

Survey of WML

  • 1. Mobile Website Development Survey of WML Facilitated by: Michael Wakahe Tawi Commercial Services Ltd Jul 2011
  • 2. Table of Contents  Introduction  Hello World  Introducing JSP  Exercises Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 3. Introduction Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 4. Introduction Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved. The WAP Stack
  • 5. Introduction  WTP (Wireless Transaction Protocol) & WDP (Wireless Datagram Protocol) provide low-level glue between the upper levels and the really low-level communications.  WTLS (Wireless Transaction Layer Security) provides security services (encryption and authentication). Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 6. Introduction  These protocols aren't relevant to normal application programmers  The second highest level in the stack is the high- level communications protocol, called WSP (Wireless Session Protocol).  Provides a complete replacement for HTTP Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 7. Introduction  The highest stack level is WAE (Wireless Application Environment)  This is the part that the user actually sees & interacts  The WAE aims to provide a World Wide Web-like model for writing applications Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 8. Introduction  The WAE incorporates several key features of the Web that we are familiar with, e.g. URLs & MIME content types (such as text/html and image/gif)  Additionally it provides similar replacements for other features: HTML is replaced with WML (Wireless Markup Language) & JavaScript is replaced with WMLScript Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 9. Introduction  Almost all WAP applications can be written without using anything outside of these two languages and WBMP (Wireless Bitmap: the WAP image format) Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 10. Introduction Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved. The WAP Chain of Processing
  • 11. Hello World Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 12. Hello World  We will use Eclipse to compose our WML and deploy in the Tomcat ROOT folder Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 13. Hello World <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card title="First WML Example"> <p>Hello, World!</p> </card> </wml> Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 14. Hello World  Note that all tag names are in lowercase  In WML, tag names are case-sensitive  A file of WML represents a deck of cards  This is the reason for the <card> tag Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 15. Hello World  Each individual card does behaves very much like an HTML page  So you can think of a WML deck as being similar to a number of HTML pages all grouped together Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 16. Hello World  Cards in a deck are all downloaded at the same time  So the user has to wait only once & the others can be accessed almost instantly  Cramming too many cards into a single deck is bad practice  Ideally maximum of 5 to 6 cards per deck Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 17. WML Structure Explained Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 18. WML Structure Explained Valid child tags of <wml> are:  <head>: Defines document metadata and access control using the <meta> and <access> tags. Zero or one <head> tags are allowed in a document.  <card>: Defines a card to display in the browser. One or more <head> tags are allowed in a document. Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 19. WML Structure Explained  <template>: Defines global event handlers and commands for the deck. Zero or one <template> tags are allowed in a document. Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 20. WML Structure Explained Valid child tags of <card> are:  <p>: Contains text, images, and links. Most user- accessible and visible content in a WML card is child content of this tag. Zero or more <p> tags are allowed in a card.  <pre>: Contains preformatted text. Zero or more <pre> tags are allowed in a card. Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 21. WML Structure Explained  <do>: Contains commands and actions. Zero or more <do> tags are allowed in a card.  <timer>: Activates time-based events. Zero or one <timer> tags are allowed in a card.  <onevent>: Specifies tasks based on different card- level events. Zero or more <onevent> tags are allowed in a card. Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 22. WML Structure Explained Comments: <!-- A simple comment. --> <!--This is a comment that spans several lines.--> Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 23. WML Structure Explained  Other topics in WML include: Special Characters, Header & Metadata, Text Formatting, Links, Images, Tables, Timers, Variables, User Input, WMLScript  Browse to http://learnthemobileweb.com/books for links to WML references and helpful documentation Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 24. Introducing JSP Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 25. Introducing JSP  WML can be mixed with JSP and Servlets  Save the following example as a .jsp not as a .wml  Deploy to servlet container (Tomcat) Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 26. Introducing JSP <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <% response.setContentType("text/vnd.wap.wml;charset=UTF-8"); int num1 = 9; int num2 = 12; %> <wml> <card title="First WML Example"> <p>My name is <% out.println("Michael"); %></p> <p>The sum of num1 and num2 is <%= (num1+num2) %></p> </card> </wml> Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 27. Exercises Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 28. Exercises Spot the errors in the following sample: <wml> <card ID=start title='Example of Invalid WML'> <P>This markup is invalid. </card> </wml> Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 29. Exercises The WML code sample above has the following syntax errors:  XML declaration is missing.  DOCTYPE declaration is missing.  ID attribute of <card> tag is uppercase. (Well-formed WML requires lowercase tags.) Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 30. Exercises  Value of the id attribute of the <card> is not delimited.  Value of the title attribute of the <card> tag is delimited with single quotes.  <p> tag is uppercase. (Well-formed WML requires lowercase tags.)  <p> tag has an open tag but not matching close tag. Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 31. Exercises Correct version is as follows: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd"> <wml> <card id="start" title="Example of Valid WML"> <p>This markup is valid.</p> </card> </wml> Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 32. Exercises  Write a WML file that shows the first 7 digits of the Fibonacci Series. Can use JSP and/or servlets. Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.
  • 33. The End Michael Wakahe michael@tawi.mobi +254 (0) 20 239 3052 www.tawi.mobi Copyright © Tawi Commercial Services Ltd. 2015. All Rights Reserved.