Struts2
文章平均质量分 80
刘莅
黄沙百战穿金甲,不破楼兰终不还
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Struts2、Mybatis、Spring整合
1、工程结构 2、web.xml配置 contextConfigLocation classpath:applicationContext.xml org.springframework.web.context.ContextLoaderListener struts2 org.apache.struts原创 2016-12-16 21:35:23 · 11400 阅读 · 0 评论 -
Struts2文件上传
单文件上传 UplaodAction.java public class UploadAction extends ActionSupport { private File file; //InputName private String fileFileName; //格式:InputName+”FileName” private String fileContentType; //格原创 2016-12-16 22:18:54 · 11251 阅读 · 0 评论 -
Struts2文件下载
方法1、在struts中使用servlet下载 public class DownLoadAction extends ActionSupport { public String download() throws IOException{ HttpServletResponse response = ServletActionContext.getResponse(); String原创 2016-12-16 22:44:32 · 11314 阅读 · 0 评论
分享