Solved

IE 11 : How do we Get the Browser Version I.E 11 Using Java ?

Posted on 2013-12-14
3
1,954 Views
Last Modified: 2013-12-29
Hello All,

I'm using I.E - version 11 Browser. In My application it has some issue. so that i want to detect the browser version using java.

Before I.E 11 , we using "getHttpServletRequest().getHeader("User-Agent")".

It gives the the Browser name and Version. But After Introducing I.E 11 User Agent MSIE was removed..

So that how can we get the version for I.E in JAVA.

If any help it would help me a lot...

Thank You...
0
Comment
Question by:ZoniacUser
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 50

Expert Comment

by:jcimarron
ID: 39718901
ZoniacUser--
I may not understand the situation, but does this reference help
https://java.com/en/download/help/ie_tips.xml 
Java is up to version 7 Update 45 now, but the instructions are still valid.

Or perhaps this reference
https://java.com/en/download/help/enable_browser.xml

Or use this
Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko

Taken from
http://msdn.microsoft.com/en-us/library/ie/bg182625(v=vs.85).aspx
0
 
LVL 28

Accepted Solution

by:
dpearson earned 500 total points
ID: 39719567
Prior to IE11 the user agent string would be:
Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)

So you could test for "MSIE".

For IE11 it is now:
  Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko

So you should include  a test instead for the string "Trident" - and if you wish you can check the version in there too (Trident/7.0 for IE11).

Doug
0
 

Author Closing Comment

by:ZoniacUser
ID: 39745555
Thank you for your valuable Comments ! It Works.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question