Use HTTP Accept or User-Agent headers to determine whether to redirect.

Here's an example of the Accept headers from a Nokia 3510i wap phone:

Header accept, value=application/vnd.wap.wtls-ca-certifi
cate, application/x-wap-prov.browser-settings, application/x-nokia.settings, application/vnd.wap.wmlc, application/vnd.wap.wmlscriptc, text/x-vCard, t
ext/x-vCalendar, application/vnd.wap.wtls-ca-certificate, application/vnd.wap.sic, application/x-wap-prov.browser-bookmarks, text/x-co-desc, image/gif
, image/jpeg, image/jpg, image/bmp, image/png, image/vnd.wap.wbmp, image/vnd-nok-camera-snap, image/vnd-nok-camera-snsp, image/vnd.nok-wallpaper, text
/vnd.sun.j2me.app-descriptor, application/vnd.nokia.ringing-tone, audio/midi, audio/mid, audio/x-midi, audio/x-mid, audio/sp-midi, application/java, a
pplication/java-archive, application/x-java-archive, application/vnd.wap.mms-message, image/vnd.nok-oplogo-color, image/bmp,image/vnd.wap.wbmp,applica
tion/x-nokia.settings-xml,text/x-wap.wml,text/vnd.wap.wml,text/x-hdml,text/vnd.wap.wmlscript,text/vnd.wap.si, */*


So it can support text/vnd.wap.wml but not html (even though it's got a cheeky */* at the end). Phones like the Ericsson P800 (and others) can support html (3.2).

HTH,

Jon

PS sorry about the line wrap in the headers


Stefan Moghadam wrote:
Does anyone have ideas on how to detect WML or HTML browsers from the same site and redirect the user to the same directory using JSP ? I would greatly appreciate the help. Thanks.



Stefan Moghadam




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to