This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Checking Browsers... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Checking Browsers..." Watch "Checking Browsers..." New topic

Checking Browsers...

Scott Batchelor

Joined: Jul 07, 2003
Posts: 11
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.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
As I recall, thats the "User-Agent" header that you can get from the request with
I agree. Here's the link:
subject: Checking Browsers...
jQuery in Action, 3rd edition