Struts2 Ajax 示例1. JavaScript??2.JSP调用?4.Action代码public void doAjaxTest(){try{HttpServletRespo
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); }}?
