Device Detection

As you might expect, information about what type of device is accessing your application can be deciphered by inspecting the HTTP request header. Note that there are still WAP servers out there that strip this information, so you'll need to perform some validation with the client if there's an uncertainty.

The ShowFloor application is designed to support multiple devices where it makes sense, again taking advantage of the fact that HTML, WML, and other wireless markup languages can all be served by XMLC-generated DOM templates. The getPageName() method takes advantage of the DOM template class-naming convention enforced by the Enhydra make file system, where the name of the markup page is appended with the language it represents. ...

Get Enhydra XMLC™ Java™ Presentation Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.