Re: Web Browser detection in JSP

2000-05-18 Thread Shrisha Radhakrishna
Both netscape (i use 4.7) and ie have "mozilla compatible" in the user-agent header. - Original Message - From: "Nestor Florez" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 17, 2000 1:13 PM Subject: Re: Web Browser detection in JSP Does that rea

Web Browser detection in JSP

2000-05-17 Thread P.J. Tenn
Hello, I am surprised this wasn't already have been posted and answered, but I searched the archives of this mailing list and could not find any info on this ... At any rate, is there a way to detect whether someone is using Netscape or IE using JSP? I know this can be done easily in

Re: Web Browser detection in JSP

2000-05-17 Thread Donald Vandenbeld
I am using something like this in my controller servlet: boolean nav = false; boolean ie = false; String browser = request.getHeader("User-Agent"); if (browser.indexOf ("Mozilla") (!browser.indexOf("compatible"))) nav = true; if (browser.indexOf ("MSIE")) ie = true; Donald "P.J. Tenn" wrote:

Re: Web Browser detection in JSP

2000-05-17 Thread Shrisha Radhakrishna
Tenn" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 17, 2000 12:26 PM Subject: Web Browser detection in JSP Hello, I am surprised this wasn't already have been posted and answered, but I searched the archives of this mailing list and could not find any info on this ... At

Re: Web Browser detection in JSP

2000-05-17 Thread Nestor Florez
Does that really work? I thought that the IE browser had in there something like "Mozilla compatible". Nestor :-) -Original Message- From: Donald Vandenbeld [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 17, 2000 12:55 PM To: [EMAIL PROTECTED] Subject: Re: Web Browser detect

Re: Web Browser detection in JSP

2000-05-17 Thread Apollo Mcowiti
You may also do this within the jsp itself apollo -Original Message- From: Donald Vandenbeld [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 17, 2000 2:55 PM To: [EMAIL PROTECTED] Subject: Re: Web Browser detection in JSP I am using something like this in my controller servlet

Re: Web Browser detection in JSP

2000-05-17 Thread Donald Vandenbeld
day, May 17, 2000 12:55 PM To: [EMAIL PROTECTED] Subject: Re: Web Browser detection in JSP I am using something like this in my controller servlet: boolean nav = false; boolean ie = false; String browser = request.getHeader("User-Agent"); if (browser.indexOf ("Mozilla"

Re: Web Browser detection in JSP

2000-05-17 Thread Robert Nicholson
Look at the headers in the request object. I don't know if UserAgent will tell you enough or not. - Original Message - From: "P.J. Tenn" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 17, 2000 12:26 PM Subject: Web Browser detection in JSP Hello, I am