code: public static boolean isIE(HttpServletRequest req) {
  
  		String agent = req.getHeader("User-Agent");
  		return null != agent && agent.contains("MSIE");
  	}
docs: Checks if the user agent is IE
  
  @param req
  the request
  @return true if the user agent is IE