Jquery ajax under firefox returns the object XMLDocument handling method


When struts2 returns a json type using jquery ajax under firefox, the result of successful ajax execution is [object XMLDocument].

Solution: in getwriter.print (); Add a line of code


ServletActionContext.getResponse().setContentType("text/html;charset=UTF-8");