Is Request Ajax: how to find

this is good way to find out if something is ajax or not in java


public static boolean isAjax(request) {
   return "XMLHttpRequest".equals(request.getHeader("X-Requested-With"));
}

Comments

Popular posts from this blog

Implementing Custom ResultType in Struts2

Strings in Java