enki_ding 发表于 2013-2-7 20:36:24

Struts2获取out对象

HttpServletResponse response = ServletActionContext.getResponse();
        response.setContentType("text/html;charset=GBK");//解决中文乱码
        PrintStream out = new PrintStream(response.getOutputStream());//获取out输出对象
        out.println("111111");
页: [1]
查看完整版本: Struts2获取out对象