Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Build multiserving Java applications, Part 1: Exploring WURFL

Discover how to create custom multiserving tags in JSP

Bilal Siddiqui (bsiddiqui@xml4java.com), Consultant, 自由职业者
Bilal Siddiqui is an electronics engineer, an XML consultant, and the founder of XML4Java.com, a company focused on simplifying e-business. After graduating in 1995 with a degree in electronics engineering from the University of Engineering and Technology, Lahore, India, he began designing software solutions for industrial control systems. Later, he turned to XML and used his experience of programming in C++ to build Web- and WAP-based XML processing tools, server-side parsing solutions, and service applications. He is a technology evangelist and a frequently published technical author.

Summary:  In this tutorial series, you'll learn how to build Web applications that can serve wireless clients according to client capabilities. This concept is called multiserving, and it's useful in pervasive computing applications. Wireless Universal Resource File (WURFL), an open source project at SourceForge.net, uses XML to describe the capabilities of wireless devices. This tutorial focuses on exploring and using WURFL, beginning with the concept of multiserving and seeing how WURFL enables multiserving by providing an XML format to express the capabilities of wireless devices.

View more content in this series

Date:  07 Nov 2006
Level:  Intermediate PDF:  A4 and Letter (260 KB | 48 pages)Get Adobe® Reader®

Activity:  12208 views
Comments:  

Before you start

About this tutorial series

This two-part tutorial series explores and demonstrates the concept of multiserving -- that is, serving responses to clients according to client capabilities. You'll learn why pervasive computing applications require multiserving and how to multiserve in server-side Java™ applications.

This series also explains the use of device descriptions in multiserving scenarios and demonstrates how to use Wireless Universal Resource File (WURFL) to learn the capabilities of wireless devices so you can implement your own multiserving JavaServer Pages (JSP) tags to be used in your applications. Finally, this series demonstrates how to integrate WURFL features into JavaServer Faces (JSF) and JSP Standard Tag Library (JSTL) applications to fulfill pervasive computing requirements.


About this tutorial

This first tutorial in the series focuses on exploring and using WURFL. You'll get an overview of the concept of multiserving and see how WURFL enables multiserving by providing an XML format to express the capabilities of wireless devices. The tutorial then explores WURFL in detail, explaining how WURFL's accompanying Java API works and demonstrating how to use WURFL in multiserving Java applications.

This tutorial also shows you how to use the Wireless Abstraction Library (WALL), a custom tag library based on WURFL, in your JSP applications. The tutorial explains how to build several of your own multiserving JSP tags, and concludes by discussing the importance of multiserving in JSF applications.


Prerequisites

This tutorial demonstrates the concept of multiserving by considering example code in two markup languages commonly used in wireless applications:

  • Extensible HyperText Markup Language (XHTML)
  • Wireless Markup Language (WML)

This tutorial doesn't explain how these markup languages work in wireless devices, but instead focuses on demonstrating how to multiserve the markup of these languages. It is assumed that you have a basic understanding of markup languages. If you need additional information, Resources includes links to some IBM® developerWorks articles that explain how XHTML and WML work.


Who should take this tutorial?

This tutorial is written for those who want to learn the concept of multiserving or want to know why device descriptions are necessary to serve device-specific responses in pervasive computing applications. It is also useful if you want to see the behavior of a multiserving application up and running and serving a variety of wireless clients.


Code samples and installation requirements

You need some tools to try this tutorial's code. The first thing you need is WURFL, which you can download from its official Web site (see Resources).

This tutorial uses the following emulator tools to test the multiserving markup:

  • Openwave Phone Simulator Versions 5.1 and 7.0
  • WinWAP Smartphone Browser Emulator
  • Nokia 3300 SDK 1.0

This tutorial also uses Apache Tomcat 5 as a JSP container, along with Java Development Kit (JDK) 5.0. All these tools are available for free download (see Resources).

1 of 9 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Java technology, Web development
ArticleID=172926
TutorialTitle=Build multiserving Java applications, Part 1: Exploring WURFL
publish-date=11072006
author1-email=bsiddiqui@xml4java.com
author1-email-cc=dwxed@us.ibm.com

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).