Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to detect browser types

Status
Not open for further replies.

sheed

Programmer
Jun 14, 2005
38
US
Hi how can I detect a browser type using jsp. Is there a way to detect all browser types i.e. IE,Netscape,Firefox,Opera etc.. I know I can use the following to get info about the browser:
Code:
String ua = request.getHeader( "User-Agent" );

But using so doesn't get me back about Opera and don't know what other browser types. Is there a way to get info about all the browsers.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top