use of org.zkoss.zk.ui.Execution in project adempiere by adempiere.
the class AEnv method isInternetExplorer.
/**
* @return true if user agent is internet explorer
*/
public static boolean isInternetExplorer() {
Execution execution = Executions.getCurrent();
if (execution == null)
return false;
Object n = execution.getNativeRequest();
if (n instanceof ServletRequest) {
String userAgent = Servlets.getUserAgent((ServletRequest) n);
if (userAgent.indexOf("MSIE ") >= 0) {
return true;
}
}
return false;
}
Aggregations