Mike Spisak,
Thank you very much.
Jack Li
-----Original Message-----
From: Mike Spisak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 12:08 PM
To: [EMAIL PROTECTED]
Subject: Re: to obtain browser name and version
Jack-
Here is a sample of how I have done it:
<%
String browser = request.getHeader("User-Agent");
if(browser.indexOf("MSIE") >= 0) {
// IE-specific code
} else if(browser.indexOf("Mozilla") >= 0) {
// Mozilla-specific code (netscape)
} else {
// any other browser
}
%>
Hope this helps!
| m i k e |
At 10:48 AM 5/10/2001 -0400, you wrote:
>Hello,
>
>Is there a way to obtain the browser name and version in JSP?
>
>Thanks,
>Jack Li