File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Internet Explorer browser version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
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: 60781
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 60781
    
  65

It'd be best to open a new topic in the HTML/Javascript forum to address your Mozilla compatibility issues.
 
wood burning stoves
 
subject: Internet Explorer browser version
 
Similar Threads
Problem with tomcat...please advise
statusbar in swing
Error Handling in Servlets
Saving word document in browser doesn't work
how to get IE language setting?