This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Servlets and the fly likes User Agent String??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "User Agent String???" Watch "User Agent String???" New topic

User Agent String???

Jon Tsatsonis

Joined: May 10, 2000
Posts: 4
Does any one know how you can extract this using Servlets???

Joined: Jul 06, 2000
Posts: 16
String browser = request.getHeader("User-Agent");
Heitor Bembom

Joined: Jul 11, 2000
Posts: 10
Is returning "null" if I use a Mac. It works fine with Windows. Does anybody knows why it is not working on Macs? Is there any other method I can use?
Heitor Bembom
I agree. Here's the link:
subject: User Agent String???