Re: Opinions on detecting browser type for WML vs. HTML

2001-10-23 Thread Drasko . Kokic
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

RE: Opinions on detecting browser type for WML vs. HTML

2001-10-23 Thread dave . prout
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 -

Re: Opinions on detecting browser type for WML vs. HTML

2001-10-23 Thread Jim Cheesman
> > > >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

Re: Opinions on detecting browser type for WML vs. HTML

2001-10-23 Thread simon
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

Re: Opinions on detecting browser type for WML vs. HTML

2001-10-23 Thread Brendan McKenna
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

RE: Opinions on detecting browser type for WML vs. HTML

2001-10-23 Thread dave . prout
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

Re: Opinions on detecting browser type for WML vs. HTML

2001-10-23 Thread simon
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

Re: Opinions on detecting browser type for WML vs. HTML

2001-10-23 Thread Dr. Evil
> 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

RE: Opinions on detecting browser type for WML vs. HTML

2001-10-23 Thread dave . prout
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 &