WML or HTML detection

2002-07-25 Thread David Oxley
From a servlet how can you detect what should be output from the type of client that sent the request. i.e. If a WAP phone accesses a servlet then it outputs WML or if a Web Browser accesses the same servlet then HTML is output Thanks. Dave

RE: WML or HTML detection

2002-07-25 Thread Turner, John
: Thursday, July 25, 2002 8:37 AM To: 'Tomcat Users List' Subject: WML or HTML detection From a servlet how can you detect what should be output from the type of client that sent the request. i.e. If a WAP phone accesses a servlet then it outputs WML or if a Web Browser accesses the same servlet

RE: WML or HTML detection

2002-07-25 Thread Donie Kelly
To: 'Tomcat Users List' Subject:RE: WML or HTML detection Assuming HttpServletRequest request: String clientBrowser = request.getHeader(User-Agent); String clientReferer = request.getHeader(Referer); String clientIP = request.getRemoteAddr(); John Turner [EMAIL PROTECTED] -Original

Re: WML or HTML detection

2002-07-25 Thread Arthur Veinstein
- Original Message - From: David Oxley [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, July 25, 2002 2:37 PM Subject: WML or HTML detection From a servlet how can you detect what should be output from the type of client that sent the request. i.e. If a WAP phone accesses

Re: WML or HTML detection

2002-07-25 Thread Craig R. McClanahan
On Thu, 25 Jul 2002, David Oxley wrote: Date: Thu, 25 Jul 2002 13:37:01 +0100 From: David Oxley [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: WML or HTML detection From a servlet how can you detect what should