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
send HTML
Arthur
- 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 outp
: '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
Oxley [mailto:[EMAIL PROTECTED]]
Sent: 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
output
>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