`

上传组件后,struts2.action的文件上传成功以后,弹出下载json数据对话框.

    博客分类:
  • JAVA
阅读更多
1.     result type ="json" ,action调用json plugin
2:     HttpServletResponse response = ServletActionContext.getResponse();
       PrintWriter out = response.getWriter();
       out.print("删除成功");
       out.close();

3:    <result name="success" type="stream">
      <param name="contentType">text/xml</param>
      <param name="inputName">is</param>
     </result> 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics