首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Ajax >

Struts2 Ajax 示范

2012-11-09 
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);        }}

?

热点排行