Re: Web Browser detection in JSP
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 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 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") (!browser.indexOf("compatible"))) nav = true; if (browser.indexOf ("MSIE")) ie = true; Donald "P.J. Tenn" wrote: 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 JavaScript using code along the lines of: var browser = navigator.appName; var Nav = (browser == "Netscape"); var IE = (browser == "Microsoft Internet Explorer); However, I need to set boolean variables within the scriptlet % ... % tags based on whether Netscape or IE is being used. Thanks in advance!!! P.J. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
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 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 JavaScript using code along the lines of: var browser = navigator.appName; var Nav = (browser == "Netscape"); var IE = (browser == "Microsoft Internet Explorer); However, I need to set boolean variables within the scriptlet % ... % tags based on whether Netscape or IE is being used. Thanks in advance!!! P.J. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
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") (!browser.indexOf("compatible"))) nav = true; if (browser.indexOf ("MSIE")) ie = true; Donald "P.J. Tenn" wrote: 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 JavaScript using code along the lines of: var browser = navigator.appName; var Nav = (browser == "Netscape"); var IE = (browser == "Microsoft Internet Explorer); However, I need to set boolean variables within the scriptlet % ... % tags based on whether Netscape or IE is being used. Thanks in advance!!! P.J. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Web Browser detection in JSP
%String browser = request.getHeader("User-Agent"); System.out.println(browser); String type=null; if(browser.indexOf("MSIE") = 0) type = "IE"; else type = "other"; System.out.println(type); % - 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 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 JavaScript using code along the lines of: var browser = navigator.appName; var Nav = (browser == "Netscape"); var IE = (browser == "Microsoft Internet Explorer); However, I need to set boolean variables within the scriptlet % ... % tags based on whether Netscape or IE is being used. Thanks in advance!!! P.J. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets __ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Web Browser detection in JSP
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 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") (!browser.indexOf("compatible"))) nav = true; if (browser.indexOf ("MSIE")) ie = true; Donald "P.J. Tenn" wrote: 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 JavaScript using code along the lines of: var browser = navigator.appName; var Nav = (browser == "Netscape"); var IE = (browser == "Microsoft Internet Explorer); However, I need to set boolean variables within the scriptlet % ... % tags based on whether Netscape or IE is being used. Thanks in advance!!! P.J. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Web Browser detection in JSP
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: 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: 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 JavaScript using code along the lines of: var browser = navigator.appName; var Nav = (browser == "Netscape"); var IE = (browser == "Microsoft Internet Explorer); However, I need to set boolean variables within the scriptlet % ... % tags based on whether Netscape or IE is being used. Thanks in advance!!! P.J. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Web Browser detection in JSP
I check for MSIE instead of 'compatible' because I thought browsers like Opera might also have compatible in the string. Here are the strings I get returned on two systems (NT and Win 95) I get this returned for Netscape: Mozilla/4.73 [en] (WinNT; U) Mozilla/4.08 [en] (Win95; I;Nav) and this for Internet Explorer: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0) Mozilla/4.0 (compatible; MSIE 4.01; Windows 95) I would be interested in learning what some of the less common browsers are returning... Donald This is the JSP I used: html headtitleBrowser Test/title/head body p%= request.getHeader("User-Agent") %/p /body /html Nestor Florez wrote: 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 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") (!browser.indexOf("compatible"))) nav = true; if (browser.indexOf ("MSIE")) ie = true; Donald "P.J. Tenn" wrote: 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 JavaScript using code along the lines of: var browser = navigator.appName; var Nav = (browser == "Netscape"); var IE = (browser == "Microsoft Internet Explorer); However, I need to set boolean variables within the scriptlet % ... % tags based on whether Netscape or IE is being used. Thanks in advance!!! P.J. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Web Browser detection in JSP
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 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 JavaScript using code along the lines of: var browser = navigator.appName; var Nav = (browser == "Netscape"); var IE = (browser == "Microsoft Internet Explorer); However, I need to set boolean variables within the scriptlet % ... % tags based on whether Netscape or IE is being used. Thanks in advance!!! P.J. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Browser detection in JSP ??
Fernando Ribeiro wrote: You can reach a lot of functionality - maybe BrowserHawk4J is not required - just reading the HTTP_USER_AGENT header. The User-Agent header tells you which client is connecting. It doesn't tell you anything about the client's capabilities. That's what BH4J accomplishes. BH4J has a database of the many thousands of User-Agent's out there and knows what all of them can and can't do. The upcoming version will tell you if cookies are on or off, if Java and JavaScript are on or off, the size of the client window, and even the client's connection speed! -jh- -- Jason Hunter [EMAIL PROTECTED] Book:http://www.servlets.com/book 2.0 to 2.1: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html 2.1 to 2.2: http://www.javaworld.com/jw-10-1999/jw-10-servletapi.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Browser detection in JSP ??
Fernando Ribeiro wrote: Sorry but those features will be available only on a product: - with some dumb interaction with the client layer; - with a meta information database about client browsers. What option better describes the product? Information like "what JavaScript version this client supports" is known by BrowserHawk through the use of a browser data file that can be updated regularly for new browsers. They have a full list of properties on their site. Features like if Java is on or off does require the tool does some interaction with the client. But I wouldn't call it "dumb"! If you need to know whether Java is on or off, you can't know by sniffing headers. They've sold this BrowserHawk tool in the ASP market for years. They're now interested in supporting servlets/JSP. I say that's a *very* good sign. -jh- -- Jason Hunter [EMAIL PROTECTED] Book:http://www.servlets.com/book 2.0 to 2.1: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html 2.1 to 2.2: http://www.javaworld.com/jw-10-1999/jw-10-servletapi.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Browser detection in JSP ??
You can reach a lot of functionality - maybe BrowserHawk4J is not required - just reading the HTTP_USER_AGENT header. fribeiro Richard Litofsky wrote: Yes. cyScape makes a product called BrowserHawk4J which provides exactly the same functionality found in ASP for browser detection. The main difference however is that BH4J is actually a much better implementation of ASP's browser detection, providing far better accuracy and performance, with over 50 properties of information on each browser's capabilities. More information at: http://www.cyscape.com/products/bh4j Free evaluation at: http://www.cyscape.com/products/bhawk/download.asp Javadocs: http://www.cyscape.com/com/cyscape/browserhawk/browserhawk.html HTH, Richard I wondered if JSP has support for browser detection in the same way as ASP has ?? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Re: Browser detection in JSP ??
Yes. cyScape makes a product called BrowserHawk4J which provides exactly the same functionality found in ASP for browser detection. The main difference however is that BH4J is actually a much better implementation of ASP's browser detection, providing far better accuracy and performance, with over 50 properties of information on each browser's capabilities. More information at: http://www.cyscape.com/products/bh4j Free evaluation at: http://www.cyscape.com/products/bhawk/download.asp Javadocs: http://www.cyscape.com/com/cyscape/browserhawk/browserhawk.html HTH, Richard I wondered if JSP has support for browser detection in the same way as ASP has ?? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Browser detection in JSP ??
You can use javascript also and do any conditional manipultion depending on the type of the browser Ashwani -- From: Wallis, Ken Reply To: espen dallokken Sent: Tuesday, February 22, 2000 8:11 PM To: [EMAIL PROTECTED] Subject: Re: Browser detection in JSP ?? You can retrieve and process the "USER_AGENT" header value from the incoming request For example: The JSP line: %= request.getHeader ("USER_AGENT") % prints: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT) Parse the results instead of print them you will know not only the browser, but also the version. -Original Message- From: espen dallokken To: [EMAIL PROTECTED] Sent: 2/22/00 6:58 AM Subject: Browser detection in JSP ?? I wondered if JSP has support for browser detection in the same way as ASP has ?? | || ||| || r a z o r f i s h , oslo espen dalløkken === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html == = To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Browser detection in JSP ??
I wondered if JSP has support for browser detection in the same way as ASP has ?? | || ||| || r a z o r f i s h , oslo espen dalløkken === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Browser detection in JSP ??
I use this for getting the browser type. //-- Get browser type (impotant because Netscape will need a //-- different body tag from Internet Explorer) String browser = req.getHeader("User-Agent"); if (browser.indexOf ("compatible") != -1) { if (browser.indexOf ("MSIE") != -1) browser = "ie"; else browser = "unknown"; } else { browser = "ns"; } - Original Message - From: "espen dallokken" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 22, 2000 5:58 AM Subject: Browser detection in JSP ?? I wondered if JSP has support for browser detection in the same way as ASP has ?? | || ||| || r a z o r f i s h , oslo espen dalløkken === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Browser detection in JSP ??
You can retrieve and process the "USER_AGENT" header value from the incoming request For example: The JSP line: %= request.getHeader ("USER_AGENT") % prints: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT) Parse the results instead of print them you will know not only the browser, but also the version. -Original Message- From: espen dallokken To: [EMAIL PROTECTED] Sent: 2/22/00 6:58 AM Subject: Browser detection in JSP ?? I wondered if JSP has support for browser detection in the same way as ASP has ?? | || ||| || r a z o r f i s h , oslo espen dalløkken === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html