Browser Test Using Jsp

  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Browser Test Using Jsp as PDF for free.

More details

  • Words: 43
  • Pages: 1
string useragent = request.getheader("user-agent"); system.out.println("useragent:"+useragent); useragent=useragent.tolowercase(); //convert to lowercase and then check if(useragent.indexof("netscape6") != -1) { system.out.println("netscape"); } else if(useragent.indexof("msie") != -1) { system.out.println("ie"); } else if(useragent.indexof("firefox") != -1) { system.out.println("firefox"); } else if(useragent.indexof("safari") != -1) { system.out.println("safari"); } else { system.out.println("else"); }

Related Documents

Browser Test Using Jsp
October 2019 5
Web Desing Using Jsp
November 2019 7
Browser
June 2020 15
Browser
May 2020 22
Browser
October 2019 24
Jsp
April 2020 36