aspose file tools
The moose likes JSP and the fly likes Internet Explorer browser version Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Internet Explorer browser version" Watch "Internet Explorer browser version" New topic
Author

Internet Explorer browser version

Ayyappan Selvaraj
Ranch Hand

Joined: Sep 20, 2004
Posts: 63
I need a code to get the Browser version of Internet Explorer.
(ie) something like request.getVersion()....
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

That is something better done with Javascript. If you insist on doing it on the server, you'll need to inspect the setting of the User-Agent header. Note that this is not fool-proof. It si extremely easy to spoof this header.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
pankaj patil
Ranch Hand

Joined: Dec 19, 2004
Posts: 98
Hi

if you using the jsp

then response.getHeader() can be used to know which Browser version

With Regards
Pankaj


Regards,
Pankaj Patil
Ayyappan Selvaraj
Ranch Hand

Joined: Sep 20, 2004
Posts: 63
Thank u Bear
I got the code just now and its working.
I required it bcos my Javascript( building multiline and combo box in it) doesnt work properly in mozilla.
Can you get me some suggestion for making it work in Mozilla also?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

It'd be best to open a new topic in the HTML/Javascript forum to address your Mozilla compatibility issues.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Internet Explorer browser version
 
Similar Threads
Saving word document in browser doesn't work
Problem with tomcat...please advise
how to get IE language setting?
statusbar in swing
Error Handling in Servlets