Struts2 Ajax 示例
1. JavaScript
??
2.JSP调用
?
4.Action代码
public void doAjaxTest(){try{HttpServletResponse res = ServletActionContext.getResponse(); PrintWriter out = res.getWriter(); out.println("get from ajax!"); }catch (Exception e) { log.error( e.getMessage(), e); }}?