• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checking Browsers...

 
Scott Batchelor
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone give me an example of how I would check for a...lets say IE browser in a servlet.
I am new here and pretty new to Java so any help is greatly appreciated.
SB
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I recall, thats the "User-Agent" header that you can get from the request with
getHeader("User-Agent");
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic