• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Finding the type browser from Servlet

 
Chandar Vel
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
req.getHeader( "User-Agent" )
where req is the HttpServletRequest object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic