File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Jsp Get BrowserType Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Jsp Get BrowserType" Watch "Jsp Get BrowserType" New topic
Author

Jsp Get BrowserType

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
I want to get the browser type from inside a JSP page to store it in a variable. I can find it but I know that there has to be a way. Anyone know how?
PC RE
Greenhorn

Joined: Aug 28, 2001
Posts: 29

use request.getHeader("User-Agent")
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jsp Get BrowserType