You should check the headers his browser sent you, you will be able to
understand which file he support, if he supports HTML then give it to him,
else is WML is supported the send the WML

if (request.getHeader("Accept").lastIndexOf ("wml") != -1)

    send WML
else
    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 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
>
>


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

Reply via email to