This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • Getting Browser Information

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

To capture extended browser information... In your WebPage:

Code Block
...

getApplication().getRequestCycleSettings().setGatherExtendedBrowserInfo(true);

WebClientInfo w = (WebClientInfo)getWebRequestCycle().getClientInfo();
ClientProperties cp = w.getProperties();

// do something with the data
cp.getNavigatorAppName();
cp.getNavigatorAppCodeName();
cp.getNavigatorAppVersion();
cp.getBrowserVersionMajor();
cp.getBrowserVersionMinor();
...