Hello Suhoy,

you can use this code :

public boolean isMSIEBrowser(HttpServletRequest req) {

        // test the browser version
        boolean isIE = false;

        String userAgent = req.getHeader("user-agent");

        if (userAgent == null) {
                // No info
        }
        else {
                if (userAgent.indexOf("MSIE") >= 0) {
                        // the string MSIE in included in the user-agent
                        isIE = true;
                }
        }

        return isIE;
}

-----Original Message-----
From: Sujoy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 06, 2000 11:07 PM
To: [EMAIL PROTECTED]
Subject: getting browser info??


Hi There ,
How can I determine perticular browser info ?
I mean whether it is Netscape/IE .
Is there any method to get that info ?

Thanks in advance ..
----------------------------------------------------------------------------
-------
Sujoy ,
eGain Communications Corporation
(India Development Centre)
Phone :-  91-20-4222812 Ext: 113
Fax   :-  91-20-4229515
Web site :-  http://www.egain.com

----- Original Message -----
From: Marc Krisjanous <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 06, 2000 10:36 AM
Subject: javax.servlet.jsp


> Hi all,
> does anyone have any links to information about how to use the
> javax.servlet.jsp package? I have never seen it before.
>
> Best Regards
>
> Marc
>
>
___________________________________________________________________________
> 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

___________________________________________________________________________
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