WURFL (original) (raw)

Home / Java


Luca Passani

WURFL Java API
Java API
- Javadocs
Download & Installation
(includes WALL)

Examples
How to Submit bug reports

License

WALL the Wireless Abstraction Library
WALL
Tutorial (PDF)
Reference (PDF)
NEW: Cool Menus

Demos:
- Body
- Menu
- Coolmenu
- Simple Forms
- Forms in WML Compatibility Mode
JSTL integration
- Portal

Useful Trick

Credits

Source Code
CVS at SourceForge

Other Java/WURFL efforts
Murray Brandon:
Modified WALL

Laszlo Nadai:
JAXB-based API

Bill Ray:
MyWURFL

java.net logo

SourceForge.net Logo

WALL Integration with JSTL
by Luca Passani
passani at eunet dot no

The JavaServer Pages Standard Tag Library (JSTL) encapsulates as simple tags the core functionality common to many Web applications.
JSTL has support for common, structural tasks such as iteration and conditionals, tags for manipulating XML documents, internationalization tags, and SQL tags. It also provides a framework for integrating existing custom tags with JSTL tags. For more info, check out the following documents:
http://java.sun.com/products/jsp/jstl/ and
http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html .

WALL integrates with the JSTL. In particular, you can use conditional tags to query WURFL capabilities and use the Expression Language (EL) to pass values to WALL tags inside JSPs.

Example of use of the conditional tag is:

<%@ taglib uri="/WEB-INF/tld/wall.tld" prefix="wall" %> <%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> : <wall:load_capabilities /> : <c:if test="${capabilities.midp_10} && ${capabilities.j2me_colors > 8}"> Your device supports color Java games!

the Expression Language (EL) lets you use $expressions to refer to values without nesting Java code:

<c:url var="url2" value="" title="undefined" rel="noopener noreferrer">http://someurl"> <c:param name="usr" value="lp"/> <c:param name="passwd" value="secret"/> :
<wall:a href="${url2}" title="Login">Auto-login