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

Detect browser type and version  RSS feed

 
Fernando Dominguez
Ranch Hand
Posts: 108
Debian Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I need to detect browser type and version without using javascript or css hacks, only java.

Any ideas?

Thanks
 
Nilesh Miskin
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use javax.servlet.http.HttpServletRequest's get Header() method. e.g.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(With the caveat that this is trivially spoofed.)

Why do you need this information on the server side?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!