Why don't you simple use Cocoon for this purpose?
xml.apache.org/cocoon
"Dr. Evil" <[EMAIL PROTECTED]> on 23.10.2001 11:16:31
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Opinions on detecting browser type for WML vs. HTML
I am working on a site where the s
Dr. Evil,
I use exactly the method you suggest. I have a servlet that checks
the first four characters of the user-agent. If it is 'Mozi', I call a JSP
to deal with an HTML request. If not then I assume WML and have different
JSPs for 'MOT-', 'SIE-',
'R380', 'Noki', etc.
Dave
-
>
>
>
>I am working on a site where the same URL will be hit by both WML and
>HTML browsers. Fortunately, with Tomcat, it's very easy to have a
>controller servlet which takes all incoming requests and decides to
>forward them to various processors. The problem is, how should I make
>this servl
It's probably easier to spot the WAP browser rather than the other way around. They
send all sorts of goodies in their headers.
The 'user-agent' header always contains the string "UP.Browser" so you could search
for that. WAP browsers usually send the
'accept' header as well so you could use th
Hi,
You could also check the accept request header for an explicit
mention of wml, which should only be present in a WAP/WML browser.
Brendan
--
Brendan McKennaEmail: [EMAIL PROTECTED]
Development Strategist
PROTECTED]]
Sent: 23 October 2001 10:37
To: tomcat-user
Subject: Re: Opinions on detecting browser type for WML vs. HTML
It's probably easier to spot the WAP browser rather than the other way
around. They send all sorts of goodies in their headers.
The 'user-agent' header always c
in the UK, Dave ;-)
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 23, 2001 6:51 PM
Subject: RE: Opinions on detecting browser type for WML vs. HTML
> What do you mean by "The 'user-agent' header always contains the string
> What do you mean by "The 'user-agent' header always contains the string "UP.
> Browser"
>
> I bet you 100 pounds that it doesn't. A Nokia phone on a Nokia or CMG
> Gateway will not have "UP" anywhere.
Right, I looked into that and UP.browser is a particular kind of
browser. Not all mobiles w
ll be on Openwave's Web Site. Their
documentation is good.
Dave
-Original Message-
From: Dr. Evil [mailto:[EMAIL PROTECTED]]
Sent: 23 October 2001 10:58
To: [EMAIL PROTECTED]
Subject: Re: Opinions on detecting browser type for WML vs. HTML
> What do you mean by "The &