Hi,
this should return the data you are looking for:
req.getHeader("user-agent");

however, i highly recommend you don't do this, and return a different page
for different browsers such as netscape, ie, opera, etc.
you should just keep your html to the standards!
this is very important, as people using less known browsers (such as
konqueror) end up saying that the site isn't supported, or something like
that, when indeed it is.

Only use the user agent header to detect what type of device is connecting.
In the case of most of my work, detecting whether a phone, or a web browser
is connecting.

hope this helps,
Rob

On Wed, 12 Sep 2001 19:36, you wrote:
> Hi list,
>
> �Is there any method to detect the client's device (or browser)?
> And with that information, redirect him to one page or another depending on
> the brower
>
> Thanks in advance
>
> Oskar.
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to