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