wood burning stoves 2.0*
The moose likes Servlets and the fly likes Finding the type browser from Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Finding the type browser from Servlet" Watch "Finding the type browser from Servlet" New topic
Author

Finding the type browser from Servlet

Chandar Vel
Greenhorn

Joined: Nov 21, 2000
Posts: 22
Hello All
How can I find out the client's Browser name (whether IE Or netscape or AOL browser) from a servlet/jsp. Please keep in mind that it should handle older versions of IE & Netscape as low as 4.0.
Thanks a bunch
Chandar
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
req.getHeader( "User-Agent" )
where req is the HttpServletRequest object.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Finding the type browser from Servlet
 
Similar Threads
Applets and Browsers
File-download naming problem in IE 6
Internet Explorer
Swings in Browser
how to know whether the browser is IE or netscape