Hi Roland,
You can try reading the User-Agent header like this:
String useragent=request.getHeader("User-Agent");
now if this contains MSIE than the browser is Internet Explorer.
If not, but contains Mozilla than it is Netscape.
for other browsers i don't know but try to print it out the useragent
string and You will see.
Best wishes,
Andras.
----- Original Message -----
From: Roland Behm <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 18, 2000 4:02 PM
Subject: servlet asking for browser type
> Hi Folks,
> could somebody help me concerning the following problem:
> Is a servlet able to determine the type of the requesting browser (IE4 or
> NS4 etc..)?
> Can You find the information in the HttpServletRequest parameter or
> somewhere else?
> My idea is to make a servlet decide between yielding one or the other
> browser optimized version of an html document.
> Thank's a lot!!!!!!
> Roland
>
>
___________________________________________________________________________
> 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