Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Check if netscape 6 or ie 5.5  RSS feed

 
dsw dsw
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Within jsp how do i check if the netscape version is 6 and higher and IE version is 5.5 or higher.
Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dsw dsw,
You will shortly be asked by a forum bartender to change your name to one that conforms to forum policy. You might as well beat them to it!
Meanwhile, you can inspect the contents of the "user-agent" header:

Note that this is not a 100% guarentee of accuracy. Firstly, the string is a pain to parse since there is no standard for its format. And secondly, it's easy for browsers to spoof so there is no way to be absolutely certain that you know what browser is on the client end.
hth,
bear
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!