|
Home / Java Luca Passani WURFL Java API Java API - Javadocs Download & Installation (includes WALL) Examples How to Submit bug reports License 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 Nicholas Albion: More Modified WALL Bill Ray: MyWURFL |
Portal (JSTL in action)
<%@ taglib uri="/WEB-INF/tld/wall.tld" prefix="wall" %>
<wall:document><wall:xmlpidtd />
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<wall:load_capabilities />
<wall:head>
<wall:title>Pingular</wall:title>
<wall:menu_css />
</wall:head>
<wall:body>
<wall:block>
<c:choose>
<c:when test="${capabilities.gif}">
<img src="pingular.gif" alt="Pingular" />
</c:when>
<c:otherwise>
<img src="pingular.wbmp" alt="Pingular" />
</c:otherwise>
</c:choose>
</wall:block>
<wall:menu colorize="true" autonumber="true">
<c:if test="${capabilities.midp_10}">
<wall:a href="http://url1" title="Games">Java Games</wall:a>
</c:if>
<c:if test="${capabilities.midp_10} && ${capabilities.j2me_colors > 8}">
<wall:a href="http://url1" title="Games">Cool Java Games</wall:a>
</c:if>
<c:if test="${capabilities.wap_push_support}">
<wall:a href="http://url2" title="Sport">Real-Time Sport Updates</wall:a>
</c:if>
<c:if test="${capabilities.receiver}">
<wall:a href="http://url2" title="MMS">Cool Pics</wall:a>
</c:if>
<c:if test="${capabilities.sender}">
<wall:a href="http://url2" title="MMS">Send MMS to your friends</wall:a>
</c:if>
<wall:a href="http://url2" title="News">News</wall:a>
</wall:menu>
</wall:body>
</wall:document>
If you want to see this example live, point your browser or your favorite device to http://212.174.70.231:8080/wurfl/wall/body.jsp (Hosting is courtesy of Tom Thurston, Turn On Technology http://www.turnontechnology.com) Look at it live here! Emulation provided courtesy of Yospace http://www.yospace.com/spede Choose Device: Nokia 7110, WML Siemens C35, WML (Openwave Style) Motorola V500, XHTML MP, large screen Sharp GX10, XHTML MP, not very large screen Samsung z105 |